bash: If TERM is xterm, upgrade to xterm-256color
This commit is contained in:
5
bashrc
5
bashrc
@@ -53,6 +53,11 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
if [ "$TERM" == "xterm" ] ; then
|
||||
# Upgrade; I don't think I use anything which doesn't support 256 colour these days.
|
||||
export TERM=xterm-256color
|
||||
fi
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
|
||||
Reference in New Issue
Block a user