From 7e61198b18d554675e10aed0db6e9bfc07dc8f36 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Thu, 19 Feb 2026 10:52:14 -0500 Subject: [PATCH] zero-system: update zshrc to protect dircolors --- pentoo/zero-system/files/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'