aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-06-09 01:19:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-06-09 01:19:09 +1200
commitde9d244424524bc74c468319e7838bb4eed7abb0 (patch)
tree51a52027910e681c40ad5ae8c0c7ee1776ae14c5 /bash
parentTidier implementation for VCS prompt (diff)
downloaddotfiles-de9d244424524bc74c468319e7838bb4eed7abb0.tar.gz
dotfiles-de9d244424524bc74c468319e7838bb4eed7abb0.zip
Prefer case to globbed if
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 11504d39..e39f7f26 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -57,9 +57,11 @@ hash stty &>/dev/null && stty -ixon
[[ -e "${HOME}/.ssh/agent" ]] && source "${HOME}/.ssh/agent"
# If we're using an xterm, force 256 colors.
-[[ "$TERM" == xterm* ]] && TERM=xterm-256color
+case "$TERM" in
+ xterm*) TERM=xterm-256color;;
+esac
-# Figure out how many colors we have.
+# Figure out how many colors we have now.
hash tput && COLORS=$(tput colors)
# If we have a color terminal, we'll use color for ls and grep.