From 496ed556771e9c7e11a05f72f9901dd47f6dd7dd Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 22 Mar 2021 22:54:22 +0300 Subject: [PATCH] nnn: update flag --- home/.bashrc-bloated | 2 +- home/.config/fish/conf.d/env.fish | 2 +- home/.config/nvim/plug-config/nnn.vim | 2 +- home/.config/zsh/.zshenv | 2 +- setup/nnn.sh | 13 +++++++++++++ 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 setup/nnn.sh diff --git a/home/.bashrc-bloated b/home/.bashrc-bloated index 3ea7635..d713636 100644 --- a/home/.bashrc-bloated +++ b/home/.bashrc-bloated @@ -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)$' diff --git a/home/.config/fish/conf.d/env.fish b/home/.config/fish/conf.d/env.fish index c9afed2..3c732ac 100644 --- a/home/.config/fish/conf.d/env.fish +++ b/home/.config/fish/conf.d/env.fish @@ -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)$' diff --git a/home/.config/nvim/plug-config/nnn.vim b/home/.config/nvim/plug-config/nnn.vim index 36d2ca8..a0e5803 100644 --- a/home/.config/nvim/plug-config/nnn.vim +++ b/home/.config/nvim/plug-config/nnn.vim @@ -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' } } diff --git a/home/.config/zsh/.zshenv b/home/.config/zsh/.zshenv index 45f38c5..8ea6b4d 100644 --- a/home/.config/zsh/.zshenv +++ b/home/.config/zsh/.zshenv @@ -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)$' diff --git a/setup/nnn.sh b/setup/nnn.sh new file mode 100755 index 0000000..87fa025 --- /dev/null +++ b/setup/nnn.sh @@ -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 ..