0b340bc3a5c58609a07987b296f773eaea17b274

Author
mingang.he <dustgle@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Fix #5604: No DIR ( directory ) colors (#5605)

Diff

 1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
 2index f368a48f05591e8a04e15907b36b538d92e836b0..96f34aa81fa495c1b092aa05896a8d47f33fd6d9 100644
 3--- a/lib/theme-and-appearance.zsh
 4+++ b/lib/theme-and-appearance.zsh
 5@@ -32,7 +32,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 6       (( $+commands[dircolors] )) && eval "$(dircolors -b)"
 7     fi
 8 
 9-    ls --color -d . &>/dev/null && alias ls='ls --color=tty' || ls -G . &>/dev/null && alias ls='ls -G'
10+    ls --color -d . &>/dev/null && alias ls='ls --color=tty' || { ls -G . &>/dev/null && alias ls='ls -G' }
11 
12     # Take advantage of $LS_COLORS for completion as well.
13     zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"