zsh-config/zsh/11-autocomplete.zsh

12 lines
477 B
Bash
Raw Normal View History

# 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
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:|=*'