nnn: update flag

This commit is contained in:
FollieHiyuki 2021-03-22 22:54:22 +03:00
parent b1f816c916
commit 496ed55677
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
5 changed files with 17 additions and 4 deletions

View File

@ -98,7 +98,7 @@ export POETRY_HOME="$HOME/.local/share/poetry"
if command -v nnn >/dev/null
then
export TERMINAL=alacritty # for the preview script
export NNN_OPTS="Hedx"
export NNN_OPTS="HUedx"
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
export NNN_FIFO="/tmp/nnn.fifo"
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)$'

View File

@ -101,7 +101,7 @@ set -gx _ZO_RESOLVE_SYMLINKS 1
# nnn
if command -v nnn >/dev/null
set -gx TERMINAL alacritty
set -gx NNN_OPTS Hedx
set -gx NNN_OPTS HUedx
set -gx NNN_PLUG 't:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
set -gx NNN_FIFO /tmp/nnn.fifo
set -gx 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)$'

View File

@ -1,3 +1,3 @@
let g:nnn#set_default_mappings = 0
" let g:nnn#command = 'nnn -Hdex'
" let g:nnn#command = 'nnn -HUdex'
let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.8, 'highlight': 'Debug' } }

View File

@ -83,7 +83,7 @@ export _ZO_RESOLVE_SYMLINKS=1
if command -v nnn >/dev/null
then
export TERMINAL=alacritty # for the preview script
export NNN_OPTS="Hedx"
export NNN_OPTS="HUedx"
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
export NNN_FIFO="/tmp/nnn.fifo"
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)$'

13
setup/nnn.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
git clone https://github.com/FollieHiyuki/nnn.git
cd nnn || exit 1
if command -v doas >/dev/null
then
doas -- make O_NERD=1 install
else
sudo make O_NERD=1 install
fi
cd ..