add zsh autocomplete

src: https://apple.stackexchange.com/a/377857/200035
This commit is contained in:
DannyDannyDanny 2023-04-20 10:17:31 +02:00
parent 9f52cb181d
commit 9c99e02a7b

8
.zshrc
View file

@ -122,6 +122,14 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
# zsh auto-complete
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
# for poetry # for poetry
fpath+=~/.zfunc fpath+=~/.zfunc
autoload -Uz compinit && compinit autoload -Uz compinit && compinit