Simplify xterm256-color detection

This commit is contained in:
Kenneth Benzie 2017-02-03 14:38:41 +00:00
parent 6ac867d134
commit 53e214efd8

View File

@ -1,15 +1,11 @@
if !platform#is_windows()
if $TERM != 'xterm-256color' &&
if !platform#is_windows() &&
\ !has("gui_running") &&
\ $TERM != 'xterm-256color' &&
\ $TERM != 'screen-256color' &&
\ $TERM != 'tmux-256color'
echo "This terminal does not report 256 color support"
echo "For gnome-terminal:"
echo "Open: Profile Preferences"
echo "Open: Title and Command"
echo "Tick: Run a custom command instead of my shell"
echo "Add the following custom command"
echo "This terminal does not report 256 color support but probaly supports it"
echo "Setup the shell to do something similar on load"
echo "env TERM=xterm-256color /usr/bin/zsh"
endif
endif
if !platform#is_windows() || has("gui_running")
colorscheme fresh