From c63603f1e2e63b28d61a3bef2b08d28e8113e7b4 Mon Sep 17 00:00:00 2001 From: Alexandros Kozak Date: Tue, 9 Nov 2021 10:58:44 -0800 Subject: [PATCH] Suppress exit code when nearcolor is not available --- fast-syntax-highlighting.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast-syntax-highlighting.plugin.zsh b/fast-syntax-highlighting.plugin.zsh index c05dc4f..6aacedf 100644 --- a/fast-syntax-highlighting.plugin.zsh +++ b/fast-syntax-highlighting.plugin.zsh @@ -381,4 +381,4 @@ if [[ $(uname -a) = (#i)*darwin* ]] { FAST_HIGHLIGHT[chroma-man]= } -[[ $COLORTERM == (24bit|truecolor) || ${terminfo[colors]} -eq 16777216 ]] || zmodload zsh/nearcolor &>/dev/null +[[ $COLORTERM == (24bit|truecolor) || ${terminfo[colors]} -eq 16777216 ]] || zmodload zsh/nearcolor &>/dev/null || :