fall back to xterm if xterm-256color isn't available
This commit is contained in:
parent
c562825f3a
commit
505abe28e4
|
@ -23,6 +23,11 @@ then
|
||||||
stty erase
|
stty erase
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color ]]
|
||||||
|
then
|
||||||
|
TERM=xterm
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $TERM = xterm || $TERM = xterm-256color ]]
|
if [[ $TERM = xterm || $TERM = xterm-256color ]]
|
||||||
then
|
then
|
||||||
# indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)
|
# indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)
|
||||||
|
|
Loading…
Reference in New Issue