Created
September 7, 2012 06:17
-
-
Save trygvis/3663745 to your computer and use it in GitHub Desktop.
Useful snippet to select the correct terminal on Linux and OSX.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://vim.wikia.com/wiki/256_colors_in_vim | |
if [ -z "$SSH_CLIENT" ] | |
then | |
if [ -r /usr/share/terminfo/x/xterm-256color -o -r /lib/terminfo/x/xterm-256color -o `uname -s` = Darwin ] | |
then | |
export TERM='xterm-256color' | |
else | |
export TERM='xterm-color' | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment