My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 line
429 B

  1. #!/usr/bin/env sh
  2. # Description: Fuzzy find executables in $PATH and launch an application.
  3. # stdin, stdout, stderr are suppressed so CLI utilities exit silently.
  4. # Works as an independent app launcher.
  5. #
  6. # Shell: POSIX compliant
  7. # Author: Arun Prakash Jana
  8. IFS=':'
  9. get_selection() {
  10. ls -H $PATH | sort | fzy
  11. }
  12. if selection=$( get_selection ); then
  13. "$selection" 2>/dev/null 1>/dev/null &
  14. fi