Simplify xterm256-color detection

This commit is contained in:
Kenneth Benzie 2017-02-03 14:38:41 +00:00
parent f19f507833
commit 5651bb8b03

View File

@ -1,16 +1,12 @@
if !platform#is_windows() if !platform#is_windows() &&
if $TERM != 'xterm-256color' && \ !has("gui_running") &&
\ $TERM != 'xterm-256color' &&
\ $TERM != 'screen-256color' && \ $TERM != 'screen-256color' &&
\ $TERM != 'tmux-256color' \ $TERM != 'tmux-256color'
echo "This terminal does not report 256 color support" echo "This terminal does not report 256 color support but probaly supports it"
echo "For gnome-terminal:" echo "Setup the shell to do something similar on load"
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 "env TERM=xterm-256color /usr/bin/zsh" echo "env TERM=xterm-256color /usr/bin/zsh"
endif endif
endif
if !platform#is_windows() || has("gui_running") if !platform#is_windows() || has("gui_running")
colorscheme fresh colorscheme fresh
endif endif