add support for dircolors

This commit is contained in:
dmitmel 2018-06-15 17:02:45 +03:00
parent 93efc97f14
commit 448798654f

View file

@ -43,6 +43,14 @@ configure_oh_my_zsh() {
fi
}
configure_zsh() {
[[ -f ~/.dircolors ]] && eval "$(dircolors ~/.dircolors)"
[[ -z "$LS_COLORS" ]] && eval "$(dircolors -b)"
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
}
find_oh_my_zsh
configure_oh_my_zsh
source "$ZSH/oh-my-zsh.sh"
configure_zsh