bin

bin
git clone git://git.zepp.club/bin.git
Log | Files | Refs | README | LICENSE

smenu (248B)


      1 #!/bin/sh
      2 #perl -MPOSIX -e 'setsid; exec @ARGV';  
      3 
      4 printf '\033[32m->\033[m %s' "Run: " ; read -r input
      5 if inp=$(command -v -- "$input") \
      6         && [ -z "${inp##/*}" ] && [ -x "$inp" ]; then
      7         nohup "$input" >/dev/null & killw "$(pfw)"
      8 fi