✨ add zsh autocomplete
src: https://apple.stackexchange.com/a/377857/200035
This commit is contained in:
parent
9f52cb181d
commit
9c99e02a7b
1 changed files with 8 additions and 0 deletions
8
.zshrc
8
.zshrc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue