mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
18 lines
366 B
Plaintext
18 lines
366 B
Plaintext
|
#!/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
|