zshrc: More ways to check for truecolor terminal
This commit is contained in:
parent
58d4d12498
commit
8d75c7937c
1 changed files with 2 additions and 1 deletions
3
zshrc
3
zshrc
|
@ -15,7 +15,8 @@ local ls_color="auto"
|
|||
local ls_on_cd="yes"
|
||||
local ls_on_init="no"
|
||||
|
||||
if [ "$terminfo[colors]" = 16777216 ]; then
|
||||
if [ "$COLORTERM" = "24bit" -o "$COLORTERM" = "truecolor" \
|
||||
-o "$terminfo[colors]" = 16777216 ]; then
|
||||
local color_cwd="#209060"
|
||||
local color_host="#176945"
|
||||
local color_suffix="#29bc7d"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue