From c58b4d26b5ef99e427eff08a759148fd86250998 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 20 Apr 2022 12:56:39 +0200 Subject: zsh: Only execute dircolors on systems providing it .zshrc: Guard calls to dircolors with check for existence using `command -v`. --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 98d77c4..08504c0 100644 --- a/.zshrc +++ b/.zshrc @@ -3,7 +3,9 @@ for config_file ($HOME/.config/zsh/functions/*.zsh) source $config_file # dircolors # Set colors for ls output -eval $(dircolors ~/.dircolors) +if command -v dircolors > /dev/null; then + eval $(dircolors ~/.dircolors) +fi # Environment # -- cgit v1.2.3-70-g09d2