aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-06-17 18:28:47 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-06-17 18:28:47 +0530
commit41532ef0027020b82324b49c20fcbf61abb0200c (patch)
tree820a00ab1d63e148d3982722c24c9334499aee96 /README.md
parentff3031ade00f37aa791026e4987a04359a0c3af5 (diff)
downloadnnn-41532ef0027020b82324b49c20fcbf61abb0200c.tar.gz
Example to integrate fzy using custom script
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index 04ad06e..d8cd0fc 100644
--- a/README.md
+++ b/README.md
@@ -418,9 +418,9 @@ Note that you may want to keep quotes disabled in this case.
#### run a custom script
-Export the path to the custom script:
+Export the path to the custom executable script:
- export NNN_SCRIPT=/usr/local/bin/script.sh
+ export NNN_SCRIPT=/usr/local/bin/nscript
Sample script to open image files in current dir in sxiv:
@@ -428,6 +428,12 @@ Sample script to open image files in current dir in sxiv:
sxiv -q * >/dev/null 2>&1
+Sample (fish shell) script to fuzzy find files in fzy and open with xdg-open:
+
+ #!/usr/bin/env sh
+
+ xdg-open (find -type f | fzy) > /dev/null 2>&1
+
Press <kbd>R</kbd> to run the script in the current directory.
#### change dir color