Merge pull request #10373 from davidbailey00/patch-1

Suggest alternative method for enabling ZSH completions
This commit is contained in:
Mike McQuaid 2021-01-20 17:05:32 +00:00 committed by GitHub
commit ea1affb658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,11 @@ 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 appending the following line to your `~/.zprofile` after Homebrew's initialization, instead of modifying your `~/.zshrc` as above:
```sh
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
```
You may also need to forcibly rebuild `zcompdump`: