summaryrefslogtreecommitdiff
path: root/dot_config/zsh/zshrc.style
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/zsh/zshrc.style')
-rw-r--r--dot_config/zsh/zshrc.style6
1 files changed, 6 insertions, 0 deletions
diff --git a/dot_config/zsh/zshrc.style b/dot_config/zsh/zshrc.style
index 07e4b56..fdb4584 100644
--- a/dot_config/zsh/zshrc.style
+++ b/dot_config/zsh/zshrc.style
@@ -33,6 +33,12 @@ zstyle ':completion:*:man:*' menu yes select
zstyle ':completion:*' special-dirs ..
+if (( ${#ls_colors} )); then
+ zstyle ':completion:*:default' list-colors $ls_colors
+elif [[ -n $LS_COLORS ]]; then
+ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
+fi
+
# you may want the following in zshrc.local...
# :completion:*:hosts list of hosts