Suggest alternative method for enabling ZSH completions

This commit is contained in:
David Bailey 2021-01-20 12:19:11 +00:00 committed by David Bailey
parent 7242cd6474
commit 5bb1556246

View File

@ -43,7 +43,12 @@ if type brew &>/dev/null; then
fi
```
This must be done before `compinit` is called. Note that if you are using Oh My Zsh, it will call `compinit` for you, so this must be done before you call `oh-my-zsh.sh`.
This must be done before `compinit` is called. Note that if you are using Oh My Zsh, it will call `compinit` for you, so this must be done before you call `oh-my-zsh.sh`. This may be done by adding the following line to your `~/.zprofile` file, instead of modifying your `~/.zshrc` as above:
```diff
eval $(/opt/homebrew/bin/brew shellenv)
+ export FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
```
You may also need to forcibly rebuild `zcompdump`: