README.md | 24 ++++++++++++------------ diff --git a/README.md b/README.md index d353c25188a953572f49193d8f7bff5647ace03f..2c399b10bf0a26be2808a59ec4066ac6a2d550f3 100644 --- a/README.md +++ b/README.md @@ -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 R 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, @@ -449,6 +437,18 @@ /usr/local/bin/nscriptcustom2 and so on... Type the correct suffix when prompted on pressing the keybind R. To use the base script (`NNN_SCRIPT`), just press Enter. + +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