1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 18:38:00 +00:00

[#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