[#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 zstyle -t ':omz:alias:ls' color; then
if [[ -f "$HOME/.dir_colors" ]]; then if [[ -f "$HOME/.dir_colors" ]]; then
eval $(dircolors "$HOME/.dir_colors") eval "$(dircolors "$HOME/.dir_colors")"
else
eval "$(dircolors)"
fi fi
alias ls="$aliases[ls] --color=auto" alias ls="$aliases[ls] --color=auto"
else else

View file

@ -82,7 +82,9 @@ alias ls='ls --group-directories-first'
if zstyle -t ':omz:alias:ls' color; then if zstyle -t ':omz:alias:ls' color; then
if [[ -f "$HOME/.dir_colors" ]]; then if [[ -f "$HOME/.dir_colors" ]]; then
eval $(gdircolors "$HOME/.dir_colors") eval "$(gdircolors "$HOME/.dir_colors")"
else
eval "$(gdircolors)"
fi fi
alias ls="$aliases[ls] --color=auto" alias ls="$aliases[ls] --color=auto"
else else