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