aboutsummaryrefslogtreecommitdiffstats
path: root/user-scripts/fzy
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-17 18:39:21 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-17 18:40:54 +0530
commite1bd7c68524e8fac8279863d8b5f3b249f22942d (patch)
tree49698d55bd2930b706e1bfdc26f893f6f2cfc0f1 /user-scripts/fzy
parentff0378c18b73009b5293c34e4e709054b69e7cd7 (diff)
downloadnnn-e1bd7c68524e8fac8279863d8b5f3b249f22942d.tar.gz
Drop the .sh subscripts
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