diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-06-17 21:56:06 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-06-17 21:56:06 +0530 |
commit | 12c3f5cd1247cb449587c27e06054d7113360ac7 (patch) | |
tree | a78a4481b387af51a603644697bd4defcbc84a36 /README.md | |
parent | 7a1dd541a685f7aaa0caa92a7e00994397160ccc (diff) | |
download | nnn-12c3f5cd1247cb449587c27e06054d7113360ac7.tar.gz |
Bring examples below description
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -422,18 +422,6 @@ Export the path to the custom executable script: export NNN_SCRIPT=/usr/local/bin/nscript -Sample script to open image files in current dir in sxiv: - - #!/usr/bin/env sh - - 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. It's possible to run multiple scripts with `nnn` as long as the scripts are in the same location and share the same prefix. To enable multiple scripts, @@ -450,6 +438,18 @@ With the example of `NNN_SCRIPT` above, some more scripts could be: Type the correct suffix when prompted on pressing the keybind <kbd>R</kbd>. To use the base script (`NNN_SCRIPT`), just press <kbd>Enter</kbd>. +Sample script to open image files in current dir in sxiv: + + #!/usr/bin/env sh + + 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 + #### change dir color The default color for directories is blue. Option `-c` accepts color codes from 0 to 7 to use a different color: |