diff --git a/docs/Shell-Completion.md b/docs/Shell-Completion.md index f3a14cad13..e30de1f8f1 100644 --- a/docs/Shell-Completion.md +++ b/docs/Shell-Completion.md @@ -43,11 +43,10 @@ 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 may be done by adding the following line to your `~/.zprofile` file, instead of modifying your `~/.zshrc` as above: +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: -```diff - eval $(/opt/homebrew/bin/brew shellenv) -+ FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH +```sh +FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH ``` You may also need to forcibly rebuild `zcompdump`: