From 9a72f563a9572a06a172fbc98fd9c73e141f50b8 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 27 Nov 2021 22:17:17 +0800 Subject: Add environment variable TERMINAL --- .env | 6 ++++++ .nnnrc | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.env b/.env index c15332b..8e39ca9 100644 --- a/.env +++ b/.env @@ -1 +1,7 @@ export BROWSER='firefox --new-tab' + +TERMINAL=xterm +if [[ $TERM =~ 'st' ]]; then + TERMINAL=st +fi +export TERMINAL=$TERMINAL diff --git a/.nnnrc b/.nnnrc index 75885d4..8f12cc2 100755 --- a/.nnnrc +++ b/.nnnrc @@ -8,9 +8,4 @@ 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 -TERMINAL=xterm -if [[ $TERM =~ 'st' ]]; then - TERMINAL=st -fi - -alias n="TERMINAL=$TERMINAL nnn" +alias n="nnn" -- cgit v1.2.3