diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-09 01:19:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-09 01:19:09 +1200 |
commit | de9d244424524bc74c468319e7838bb4eed7abb0 (patch) | |
tree | 51a52027910e681c40ad5ae8c0c7ee1776ae14c5 /bash | |
parent | Tidier implementation for VCS prompt (diff) | |
download | dotfiles-de9d244424524bc74c468319e7838bb4eed7abb0.tar.gz dotfiles-de9d244424524bc74c468319e7838bb4eed7abb0.zip |
Prefer case to globbed if
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 6 |
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. |