projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58315f
)
Adjust _bashrc to drop `screen.` from `screen.*` TERMs (for Ubuntu).
author
W. Trevor King
<wking@drexel.edu>
Sat, 23 Oct 2010 12:16:16 +0000
(08:16 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 23 Oct 2010 12:18:01 +0000
(08:18 -0400)
_bashrc
patch
|
blob
|
history
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;;