Skip to content

Commit

Permalink
Ensure dircolors uses sh syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Ionescu <[email protected]>
  • Loading branch information
eukaryote authored and sorin-ionescu committed Oct 6, 2014
1 parent a217af9 commit 493bf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ if is-callable 'dircolors'; then

if zstyle -t ':prezto:module:utility:ls' color; then
if [[ -s "$HOME/.dir_colors" ]]; then
eval "$(dircolors "$HOME/.dir_colors")"
eval "$(dircolors --sh "$HOME/.dir_colors")"
else
eval "$(dircolors)"
eval "$(dircolors --sh)"
fi

alias ls="$aliases[ls] --color=auto"
Expand Down

0 comments on commit 493bf30

Please sign in to comment.