aboutsummaryrefslogtreecommitdiffstats
path: root/user-scripts/fzy
diff options
context:
space:
mode:
Diffstat (limited to 'user-scripts/fzy')
-rwxr-xr-xuser-scripts/fzy12
1 files changed, 12 insertions, 0 deletions
diff --git a/user-scripts/fzy b/user-scripts/fzy
new file mode 100755
index 0000000..ba8cfc9
--- /dev/null
+++ b/user-scripts/fzy
@@ -0,0 +1,12 @@
+#!/usr/bin/env sh
+
+# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
+#
+# Shell: generic
+# Author: Arun Prakash Jana
+
+# bash, zsh
+xdg-open $(find -type f | fzy) >/dev/null 2>&1
+
+# fish
+# xdg-open (find -type f | fzy) >/dev/null 2>&1