1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-03-29 01:26:34 +00:00
nnn/user-scripts/nlaunch

18 lines
374 B
Text
Raw Normal View History

#!/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
2019-03-12 18:14:50 +05:30
"$selection" 2>/dev/null 1>/dev/null &
fi