From: W. Trevor King Date: Sat, 23 Oct 2010 12:16:16 +0000 (-0400) Subject: Adjust _bashrc to drop `screen.` from `screen.*` TERMs (for Ubuntu). X-Git-Tag: v0.3~66 X-Git-Url: http://git.tremily.us/?p=dotfiles-framework.git;a=commitdiff_plain;h=69df62e36e6dd965032820cb7b8851bcbbaf1109 Adjust _bashrc to drop `screen.` from `screen.*` TERMs (for Ubuntu). --- diff --git a/_bashrc b/_bashrc index 528084b..61a941f 100644 --- 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;;