summaryrefslogtreecommitdiff
path: root/old/solanum/fzf2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'old/solanum/fzf2.sh')
-rwxr-xr-xold/solanum/fzf2.sh17
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