Set term when it is not set yet

This commit is contained in:
Sonny 2019-01-29 13:28:18 +01:00
parent 3cd05272cf
commit 6ca601931f

View file

@ -25,6 +25,11 @@ shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1) # make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set term if it is not set yet by the terminal
if [ -z "$TERM" ]; then
export TERM="tmux-256color"
fi
# set a fancy prompt (non-color, unless we know we "want" color) # set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in case "$TERM" in
xterm-color|*-256color) color_prompt=yes;; xterm-color|*-256color) color_prompt=yes;;