From c82a9ed050c8be869c759acfb054f73e14ebc3be Mon Sep 17 00:00:00 2001 From: juan Date: Fri, 24 Jun 2022 22:39:49 +0800 Subject: [PATCH] Feat | Update .zshrc to auto load dircolors --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 41ed54e..bfad1a2 100644 --- a/.zshrc +++ b/.zshrc @@ -34,7 +34,9 @@ zinit light zsh-users/zsh-history-substring-search autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit -eval `dircolors` +# Load LS_COLORS if not present +test -n $LS_COLORS || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS' + # The following lines were added by compinstall zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'