Ensure dircolors uses sh syntax

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
eukaryote 2014-04-17 08:30:18 -07:00 committed by Sorin Ionescu
parent a217af99f3
commit 493bf302f6

View File

@ -66,9 +66,9 @@ if is-callable 'dircolors'; then
if zstyle -t ':prezto:module:utility:ls' color; then if zstyle -t ':prezto:module:utility:ls' color; then
if [[ -s "$HOME/.dir_colors" ]]; then if [[ -s "$HOME/.dir_colors" ]]; then
eval "$(dircolors "$HOME/.dir_colors")" eval "$(dircolors --sh "$HOME/.dir_colors")"
else else
eval "$(dircolors)" eval "$(dircolors --sh)"
fi fi
alias ls="$aliases[ls] --color=auto" alias ls="$aliases[ls] --color=auto"