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
|
|
|
|
|
|
2026-08-26 14:32:50 +03:00
|
|
|
# The same goes for Homebrew on Linux.
|
|
|
|
|
# Yes, /home/linuxbrew is universal for every standard brew install on Linux.
|
|
|
|
|
if [ "${OS}" = "Linux" ] && [ -d "/home/linuxbrew/.linuxbrew/share/zsh/site-functions" ]; then
|
|
|
|
|
export fpath=(${fpath} /home/linuxbrew/.linuxbrew/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:|=*'
|