Simplify xterm256-color detection
This commit is contained in:
parent
f19f507833
commit
5651bb8b03
@ -1,16 +1,12 @@
|
||||
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
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user