diff options
author | Guangxiong Lin <[email protected]> | 2021-11-23 21:57:48 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-11-23 21:57:48 +0800 |
commit | 0b985e5982c2d3e2bd838a0c2856ee798c38d025 (patch) | |
tree | 424f8d4e3d49896e3585c5369c54cc3ad4010401 /.nnnrc | |
parent | ae919e3475e39a5c19ea43fc470b32ad3c4f3a49 (diff) | |
download | dotfiles-0b985e5982c2d3e2bd838a0c2856ee798c38d025.tar.gz dotfiles-0b985e5982c2d3e2bd838a0c2856ee798c38d025.tar.bz2 dotfiles-0b985e5982c2d3e2bd838a0c2856ee798c38d025.zip |
Update terminal detection when opening nnn
Diffstat (limited to '.nnnrc')
-rwxr-xr-x | .nnnrc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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" |