bash: If TERM is xterm, upgrade to xterm-256color

This commit is contained in:
Paul Walker
2023-11-24 11:03:10 +00:00
parent 67d7bcefc0
commit cbfd4d2350

5
bashrc
View File

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