From 777c8a89fb35c3686d2f55eef7fd1d7777c579fd Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Wed, 18 Jan 2023 10:07:32 +0000 Subject: [PATCH] bash: only run dircolors if we have ~/.dircolors --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index b7bbf87..210d261 100644 --- a/bashrc +++ b/bashrc @@ -69,7 +69,7 @@ addpath $HOME/opt/bin end export IPLAYER_OUTDIR="$HOME/Downloads/iplayer/" # enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then +if [ -x /usr/bin/dircolors -a -f ~/.dircolors ]; then eval "`dircolors -b ~/.dircolors`" fi