scripts

Log | Files | Refs | README

cheat-sheet.sh (574B)


      1 #!/bin/sh
      2 
      3 commandList="tea repos create --name resume --description 'resume source code' --private=true                                                                                                                    ─╯
      4 git
      5 hcloud
      6 nmap -sn 192.168.0.0/24 2>/dev/null | grep -E 'report|MAC' "
      7 ansible-playbook -i inventory/hosts.yml site.yml --list-hosts
      8 
      9 if ! command -v wofi >/dev/null 2>&1; then
     10   echo "wofi is not installed"
     11   exit 1
     12 fi
     13 selection=$(echo "$commandList" | wofi --prompt "Cheat Sheet" --dmenu)
     14 
     15 [ -z "$selection" ] && echo "nothing selected"
     16 exit 1