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