From 0b985e5982c2d3e2bd838a0c2856ee798c38d025 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 23 Nov 2021 21:57:48 +0800 Subject: Update terminal detection when opening nnn --- .nnnrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.nnnrc') diff --git a/.nnnrc b/.nnnrc index 33c9e33..75885d4 100755 --- a/.nnnrc +++ b/.nnnrc @@ -4,8 +4,13 @@ if [ ! -d $HOME/.config/nnn/plugins ]; then curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh fi -export NNN_PLUG='f:fzcd;v:imgview;j:autojump;p:preview-tabbed' +export NNN_PLUG='f:fzcd;v:imgview;j:autojump;p:preview-tui' [ -f /usr/bin/trash ] && export NNN_TRASH=1 export NNN_FIFO=/tmp/nnn.fifo -alias n='nnn' +TERMINAL=xterm +if [[ $TERM =~ 'st' ]]; then + TERMINAL=st +fi + +alias n="TERMINAL=$TERMINAL nnn" -- cgit v1.2.3