nnn/user-scripts/nlaunch
Arun Prakash Jana 69aeeb51d2
GUI app launcher with drop-down menu
`nlauncher` is POSIX compliant. It needs `fzy`.
2019-03-12 16:23:00 +05:30

18 lines
366 B
Bash
Executable file

#!/usr/bin/env sh
# Description: Fuzzy find executables in $PATH and launch an application
# stdin, stdout, stderr are suppressed so CLI utilities exit silently
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
IFS=':'
get_selection() {
ls -H $PATH | sort | fzy
}
if selection=$( get_selection ); then
"$selection" 2>&1 >/dev/null &
fi