autoload -Uz compinit
compinit
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
############################
# dircolors for completion #
############################
if (($+commands[dircolors])); then
if [[ -e "${HOME}/.dircolors" ]]; then
eval $(dircolors -b "${HOME}/.dircolors")
elif [[ -e /etc/DIR_COLORS ]]; then
eval $(dircolors -b /etc/DIR_COLORS)
else
eval $(dircolors -b)
fi
fi
[[ -n "$LS_COLORS" ]] && \
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# vim: ft=zsh