diff --git a/pentoo/zero-system/files/zshrc b/pentoo/zero-system/files/zshrc index f297f8f3a..b17715d51 100644 --- a/pentoo/zero-system/files/zshrc +++ b/pentoo/zero-system/files/zshrc @@ -26,7 +26,9 @@ HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 -eval $(dircolors -b /etc/DIR_COLORS) +if [ -f '/etc/DIR_COLORS' ] && [ -x "$(command -v dircolors)" ]; then + eval $(dircolors -b /etc/DIR_COLORS) +fi alias mv='nocorrect mv' alias cp='nocorrect cp'