Set term when it is not set yet
This commit is contained in:
parent
3cd05272cf
commit
6ca601931f
1 changed files with 5 additions and 0 deletions
5
.bashrc
5
.bashrc
|
|
@ -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;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue