diff options
Diffstat (limited to 'old/solanum/fzf2.sh')
-rwxr-xr-x | old/solanum/fzf2.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/old/solanum/fzf2.sh b/old/solanum/fzf2.sh new file mode 100755 index 0000000..bf774a5 --- /dev/null +++ b/old/solanum/fzf2.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +cmd=$(compgen -c | fzf) + +if [ -z "$cmd" ]; then + exit +fi + +file=$(fzf) + +if [ -z "$file" ]; then + exit +fi + +"$cmd" "$file" & + +sleep 1 |