aboutsummaryrefslogtreecommitdiffstats
path: root/user-scripts/fzy.sh
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-19 15:56:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-19 16:08:37 +0530
commit1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4 (patch)
tree39b3066694b020d208dc443c40c9be0b2f2f6fb2 /user-scripts/fzy.sh
parent40cecab4dadbc633a41e988719e9c5471bbd3bf6 (diff)
downloadnnn-1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4.tar.gz
Prepare for release v2.3
Diffstat (limited to 'user-scripts/fzy.sh')
-rw-r--r--user-scripts/fzy.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/user-scripts/fzy.sh b/user-scripts/fzy.sh
new file mode 100644
index 0000000..ba8cfc9
--- /dev/null
+++ b/user-scripts/fzy.sh
@@ -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