#! bash
+# 256 color terminal
+if [[ "$TERM" =~ ^xterm ]]; then
+ export TERM=xterm-256color
+fi
+if [[ "$TERM" =~ ^screen ]]; then
+ export TERM=screen-256color-bce
+fi
+
# Check for unsupported TERM variable
if ! tput init &> /dev/null; then
echo "Warning! TERM=$TERM unsupported, using TERM=xterm"
PROMPT_COMMAND="${DISPLAY_TITLE_COMMAND}; echo -ne '\033k\033\\'"
fi
-# 256 color terminal
-if [ "$TERM" = "xterm" ]; then
- export TERM=xterm-256color
-fi
-if [ "$TERM" = "screen-s" ]; then
- export TERM=screen-256color-s
-fi
-
# Useful aliases
alias ls='ls --color=auto -v'
alias ll='ls -hlF'