2022-02-14 23:10:34 +05:00
|
|
|
# Mac related - ensure that homebrew path on arm64 is added to fpath,
|
|
|
|
# otherwise autocompletions from installed packages won't work.
|
|
|
|
if [ "${OS}" = "Darwin" ] && [ "${OS_ARCH}" = "arm64" ]; then
|
|
|
|
export fpath=(${fpath} /opt/homebrew/share/zsh/site-functions)
|
|
|
|
fi
|
|
|
|
|
2014-12-02 21:07:00 +05:00
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
2014-12-13 23:36:32 +05:00
|
|
|
zstyle ':completion:*' menu select=2
|
|
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
2014-12-02 21:07:00 +05:00
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|