fall back to xterm if xterm-256color isn't available

This commit is contained in:
hjp 2009-10-12 12:56:39 +00:00
parent c562825f3a
commit 505abe28e4
1 changed files with 5 additions and 0 deletions

View File

@ -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)