aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-02-23 00:13:42 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-02-23 00:13:42 +1300
commit97eb4f568212615eeb154e33164e14b1f679b978 (patch)
treeb7812bda81260aaa7c3ac5049b29ede6e8aadce2 /bash
parentMove setterm call down a bit. (diff)
downloaddotfiles-97eb4f568212615eeb154e33164e14b1f679b978.tar.gz
dotfiles-97eb4f568212615eeb154e33164e14b1f679b978.zip
Add xterm-256color definition.
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 9644077d..ffc5039d 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -32,6 +32,11 @@ shopt -s cmdhist
# Append rather than overwrite Bash history.
shopt -s histappend
+# If this is an xterm, try for 256 colors.
+case "$TERM" in
+ xterm*) TERM=xterm-256color
+esac
+
# Simple prompt.
PS1='\u@\h:\w\$ '