[zsh] add zstyle config file

This commit is contained in:
Dmytro Meleshko 2019-09-11 18:08:00 +03:00
parent cd3fe95329
commit 8fb79293c8
4 changed files with 12 additions and 1 deletions

View file

@ -11,3 +11,7 @@ alias e="$EDITOR"
export CLICOLOR=1
READNULLCMD=cat
if [[ -z "$LS_COLORS" ]] && command_exists dircolors; then
eval "$(dircolors --bourne-shell)"
fi

View file

@ -60,6 +60,10 @@ plugin completions 'zsh-users/zsh-completions'
# command execution time stamp shown in the history
HIST_STAMPS=dd.mm.yyyy
# ls colors are handled by my dotfiles, so disable that part of OMZ to avoid
# wasting time
DISABLE_LS_COLORS=true
omz_plugins=(git extract fasd)
plugin oh-my-zsh 'robbyrussell/oh-my-zsh' \

View file

@ -2,7 +2,7 @@
ZSH_DOTFILES="${0:h}"
for script in functions path env plugins aliases zle prompt; do
for script in functions path env plugins aliases zstyle zle prompt; do
source "$ZSH_DOTFILES/$script.zsh"
source_if_exists "$ZSH_DOTFILES/custom/$script.zsh"
done

3
zsh/zstyle.zsh Normal file
View file

@ -0,0 +1,3 @@
if [[ -n "$LS_COLORS" ]]; then
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
fi