aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-11-27 22:17:17 +0800
committerGuangxiong Lin <[email protected]>2021-11-27 22:17:17 +0800
commit9a72f563a9572a06a172fbc98fd9c73e141f50b8 (patch)
tree901240560b37dca3762daa22ca4f46c189440454
parent88877c1031be53e93b7cfcca848f1ed966b63e56 (diff)
downloaddotfiles-9a72f563a9572a06a172fbc98fd9c73e141f50b8.tar.gz
dotfiles-9a72f563a9572a06a172fbc98fd9c73e141f50b8.tar.bz2
dotfiles-9a72f563a9572a06a172fbc98fd9c73e141f50b8.zip
Add environment variable TERMINAL
-rw-r--r--.env6
-rwxr-xr-x.nnnrc7
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"