zshrc: Add fallback for 8 color terminals
This commit is contained in:
parent
86407a7444
commit
fbf3a0a6d0
1 changed files with 7 additions and 1 deletions
8
zshrc
8
zshrc
|
@ -25,12 +25,18 @@ if [ "$COLORTERM" = "24bit" -o "$COLORTERM" = "truecolor" \
|
||||||
local color_suffix="#29bc7d"
|
local color_suffix="#29bc7d"
|
||||||
local color_vcs="#43d696"
|
local color_vcs="#43d696"
|
||||||
local color_vcs_braces="#29bc7d"
|
local color_vcs_braces="#29bc7d"
|
||||||
else
|
elif [ "$terminfo[colors]" = 256 ]; then
|
||||||
local color_cwd="29"
|
local color_cwd="29"
|
||||||
local color_host="23"
|
local color_host="23"
|
||||||
local color_suffix="36"
|
local color_suffix="36"
|
||||||
local color_vcs="78"
|
local color_vcs="78"
|
||||||
local color_vcs_braces="36"
|
local color_vcs_braces="36"
|
||||||
|
else
|
||||||
|
local color_cwd=2
|
||||||
|
local color_host=6
|
||||||
|
local color_suffix=2
|
||||||
|
local color_vcs=2
|
||||||
|
local color_vcs_braces=2
|
||||||
fi
|
fi
|
||||||
local color_jobs="yellow"
|
local color_jobs="yellow"
|
||||||
local color_status="red"
|
local color_status="red"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue