If LS_COLORS set, use those colours for tab completion for consistent appearance. Using this is simply a matter of calling dircolors _before_ omz init.

This commit is contained in:
Simon Gomizelj 2011-12-12 01:41:46 -05:00
commit 8c9d25d452

View file

@ -18,7 +18,11 @@ else
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
fi
zstyle ':completion:*' list-colors ''
if [[ -n $LS_COLORS ]]; then
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
else
zstyle ':completion:*' list-colors ''
fi
# should this be in keybindings?
bindkey -M menuselect '^o' accept-and-infer-next-history