Browse Source

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

mingang.he 7 years ago
parent
commit
0b340bc3a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/theme-and-appearance.zsh

+ 1 - 1
lib/theme-and-appearance.zsh

@@ -32,7 +32,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
       (( $+commands[dircolors] )) && eval "$(dircolors -b)"
     fi
 
-    ls --color -d . &>/dev/null && alias ls='ls --color=tty' || ls -G . &>/dev/null && alias ls='ls -G'
+    ls --color -d . &>/dev/null && alias ls='ls --color=tty' || { ls -G . &>/dev/null && alias ls='ls -G' }
 
     # Take advantage of $LS_COLORS for completion as well.
     zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"