[#83] Always evaluate dircolors if installed

This commit is contained in:
Sorin Ionescu 2012-04-02 11:25:22 -04:00
parent 6d85a24e30
commit 070c6756a8
2 changed files with 6 additions and 2 deletions

View File

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

View File

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