Adjust _bashrc to drop `screen.` from `screen.*` TERMs (for Ubuntu).
authorW. Trevor King <wking@drexel.edu>
Sat, 23 Oct 2010 12:16:16 +0000 (08:16 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 23 Oct 2010 12:18:01 +0000 (08:18 -0400)
_bashrc

diff --git a/_bashrc b/_bashrc
index 528084b040432866905d37dd95b4ebbf050216ef..61a941f90b83a5eaa36073c2e4a2c44edb5ba611 100644 (file)
--- a/_bashrc
+++ b/_bashrc
@@ -49,6 +49,11 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
     debian_chroot=$(cat /etc/debian_chroot)
 fi
 
+# adjust for Ubuntu not recognizing screen.* terms
+if [ "${TERM:0:7}" == "screen." ]; then
+    export TERM="${TERM:7}"
+fi
+
 # set a fancy prompt (non-color, unless we know we "want" color)
 case "$TERM" in
     xterm-color) color_prompt=yes;;