Check if command dircolors exists.

This commit is contained in:
Christian Baer 2020-12-06 11:53:43 +01:00
parent eaa8aa1c6e
commit b1e7cd4a98

View File

@ -5,7 +5,11 @@ LSCOLORS="gxfxcxdxbxegedabagacad"
CLICOLOR="YES" CLICOLOR="YES"
## Load .dir_colors for GNU systems ## Load .dir_colors for GNU systems
if command -v dircolors &> /dev/null; then
test -r "$XDG_CONFIG_HOME/dircolors" && eval $(dircolors "$XDG_CONFIG_HOME"/dircolors) test -r "$XDG_CONFIG_HOME/dircolors" && eval $(dircolors "$XDG_CONFIG_HOME"/dircolors)
fi
FX=( FX=(
reset "%{%}" reset "%{%}"