From e7d66fcf698cc7b8928c3ba971a6f29987dd0853 Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 25 Jun 2022 16:28:44 +0800 Subject: [PATCH] Fix | fix the bug when LS_COLORS is not detected --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index bfad1a2..8fee4a3 100644 --- a/.zshrc +++ b/.zshrc @@ -35,7 +35,7 @@ autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit # Load LS_COLORS if not present -test -n $LS_COLORS || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS' +test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS' # The following lines were added by compinstall