From 34df20529a618979d6fdc50e916db8c8faf15fb7 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sun, 9 Oct 2016 14:45:23 -0700 Subject: [PATCH] Take advantage of LS_COLORS for the color of completion if GNU ls is used. --- 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 a3bb24677..12bcd2849 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