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:
parent
6d85a24e30
commit
070c6756a8
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user