From 98cd3973d23dfb83aa60f5d11bbb31e2dc714fad Mon Sep 17 00:00:00 2001 From: Hong Date: Mon, 10 Oct 2016 11:40:17 -0700 Subject: [PATCH] Take advantage of LS_COLORS for the color of completion if GNU ls is used. (#5510) --- lib/theme-and-appearance.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh index a3bb2467..12bcd284 100644 --- a/lib/theme-and-appearance.zsh +++ b/lib/theme-and-appearance.zsh @@ -24,6 +24,9 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then fi ls --color -d . &>/dev/null && alias ls='ls --color=tty' || alias ls='ls -G' + + # Take advantage of $LS_COLORS for completion as well. + zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" fi fi