From 8d99daa74ec8abdc8c2ca42b064bde8a9437a476 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 19 Nov 2011 09:20:10 -0600 Subject: [PATCH] .bashrc: If TERM=xterm-color isn't supported, fall-back to TERM=xterm --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 26a0576..e26778f 100644 --- a/.bashrc +++ b/.bashrc @@ -16,10 +16,15 @@ HOSTFILE=~/.ssh/known_hosts # readline config INPUTRC=~/.inputrc -# if current $TERM isn't valid, fall-back to TERM=xterm-color +# if current $TERM isn't valid, fall-back to TERM=xterm-color or TERM=xterm case $(tput colors 2>&1) in tput* ) export TERM=xterm-color + case $(tput colors 2>&1) in + tput* ) + export TERM=xterm + ;; + esac ;; esac -- 2.47.1