Check if command dircolors exists.
This commit is contained in:
parent
eaa8aa1c6e
commit
b1e7cd4a98
@ -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 "%{[00m%}"
|
reset "%{[00m%}"
|
||||||
|
Loading…
Reference in New Issue
Block a user