chore(zsh): Re-enable compinit

This commit is contained in:
Ahmad Ansori Palembani 2024-07-11 13:12:05 +07:00
parent 33e4513d91
commit bf8657c239
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -4,14 +4,14 @@ fpath=(/usr/local/share/zsh-completions $fpath)
autoload -Uz compinit autoload -Uz compinit
if [[ "$OSTYPE" == "darwin"* ]]; then # if [[ "$OSTYPE" == "darwin"* ]]; then
brew >/dev/null 2>/dev/null && { # brew >/dev/null 2>/dev/null && {
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"; # FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}";
compinit -u; # homebrew moment, not recommended but whatever # compinit -u; # homebrew moment, not recommended but whatever
} # }
else # else
compinit compinit
fi # fi
zmodload -i zsh/complist zmodload -i zsh/complist
zstyle ':completion:*' menu select zstyle ':completion:*' menu select