diff options
| author | Anton Bobov <anton@bobov.name> | 2023-08-29 18:25:30 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2023-08-29 18:25:30 +0500 |
| commit | cca7b2932ff9860155687f803e46a77f0f1940e2 (patch) | |
| tree | 6c8e7b2d05f39a698f38b21d44be146edd318331 /files/.zsh | |
| parent | f91e0e295258617b05ab492906007ee97ae770d4 (diff) | |
[nnn] Update config
Diffstat (limited to 'files/.zsh')
| -rw-r--r-- | files/.zsh/rc/S50_nnn | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/files/.zsh/rc/S50_nnn b/files/.zsh/rc/S50_nnn index e6e6dd9..94c3317 100644 --- a/files/.zsh/rc/S50_nnn +++ b/files/.zsh/rc/S50_nnn @@ -1,11 +1,21 @@ -export NNN_PLUG='o:fzopen;z:autojump;p:preview-tui;T:-!&xdg-open "$PWD"' -export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$" -export NNN_FCOLORS="03040601000205f7d204d9f7" -export NNN_OPTS="aexR" -if [ $(command -v trash) ] ; then - export NNN_TRASH=1 +NNN_PLUG='o:fzopen;z:autojump;p:preview-tui;T:-!&xdg-open "$PWD"' +NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$" +NNN_FCOLORS="03040601000205f7d204d9f7" + +if command -v trash >/dev/null ; then + NNN_TRASH=1 +fi + +NNN_OPTS="${NNN_OPTS}a" # auto NNN_FIFO +NNN_OPTS="${NNN_OPTS}A" # no dir auto-enter during filter +NNN_OPTS="${NNN_OPTS}e" # text in $VISUAL/$EDITOR/vi +NNN_OPTS="${NNN_OPTS}x" # notis, selection sync, xterm title +NNN_OPTS="${NNN_OPTS}R" # no rollover at edges +if command -v cpg mvg >/dev/null ; then + NNN_OPTS="${NNN_OPTS}r" # use advcpmv patched cp, mv fi + n () { # Block nesting of nnn in subshells @@ -37,4 +47,6 @@ n () } } +export NNN_PLUG NNN_ARCHIVE NNN_FCOLORS NNN_OPTS NNN_TRASH + # vim: ft=zsh : |
