Skip to content

Instantly share code, notes, and snippets.

@keepzero
Created July 18, 2013 06:36
Show Gist options
  • Save keepzero/6027130 to your computer and use it in GitHub Desktop.
Save keepzero/6027130 to your computer and use it in GitHub Desktop.
When terminal not support 256color
if [[ $(echo $TERM | grep "rxvt-unicode") != "" ]]; then
export TERM=rxvt
fi
if [ "$TERM"x = "xterm-256color"x ]; then
export TERM=xterm
fi
if [ "$TERM"x = "screen-256color"x ]; then
export TERM=screen
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment