From cbfd4d2350fc07f576468ecf57d94ae8a5d43bc6 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 24 Nov 2023 11:03:10 +0000 Subject: [PATCH] bash: If TERM is xterm, upgrade to xterm-256color --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bashrc b/bashrc index a305d0e..0418ab5 100644 --- a/bashrc +++ b/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*)