From 8d75c7937ca76437bddcce92cd13e30e6720ce38 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 14 Jun 2020 21:00:06 +0000 Subject: [PATCH] zshrc: More ways to check for truecolor terminal --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 98f20e1..baa5ad9 100644 --- a/zshrc +++ b/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"