bash: only run dircolors if we have ~/.dircolors

This commit is contained in:
2023-01-18 10:07:32 +00:00
parent 12a41e33a1
commit 777c8a89fb

2
bashrc
View File

@@ -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