bash: only run dircolors if we have ~/.dircolors
This commit is contained in:
2
bashrc
2
bashrc
@@ -69,7 +69,7 @@ addpath $HOME/opt/bin end
|
|||||||
export IPLAYER_OUTDIR="$HOME/Downloads/iplayer/"
|
export IPLAYER_OUTDIR="$HOME/Downloads/iplayer/"
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
# 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`"
|
eval "`dircolors -b ~/.dircolors`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user