[#83] Always evaluate dircolors if installed
This commit is contained in:
parent
6d85a24e30
commit
070c6756a8
|
@ -14,7 +14,9 @@ if (( $+commands[dircolors] )); then
|
|||
|
||||
if zstyle -t ':omz:alias:ls' color; then
|
||||
if [[ -f "$HOME/.dir_colors" ]]; then
|
||||
eval $(dircolors "$HOME/.dir_colors")
|
||||
eval "$(dircolors "$HOME/.dir_colors")"
|
||||
else
|
||||
eval "$(dircolors)"
|
||||
fi
|
||||
alias ls="$aliases[ls] --color=auto"
|
||||
else
|
||||
|
|
|
@ -82,7 +82,9 @@ alias ls='ls --group-directories-first'
|
|||
|
||||
if zstyle -t ':omz:alias:ls' color; then
|
||||
if [[ -f "$HOME/.dir_colors" ]]; then
|
||||
eval $(gdircolors "$HOME/.dir_colors")
|
||||
eval "$(gdircolors "$HOME/.dir_colors")"
|
||||
else
|
||||
eval "$(gdircolors)"
|
||||
fi
|
||||
alias ls="$aliases[ls] --color=auto"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue