1
1
Fork 0

zshrc: More ways to check for truecolor terminal

This commit is contained in:
Jonathan Schleifer 2020-06-14 21:00:06 +00:00
parent 58d4d12498
commit 8d75c7937c

3
zshrc
View file

@ -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"