Skip to content

Commit

Permalink
Merge pull request Homebrew#10373 from davidbailey00/patch-1
Browse files Browse the repository at this point in the history
Suggest alternative method for enabling ZSH completions
  • Loading branch information
MikeMcQuaid authored Jan 20, 2021
2 parents e42e981 + 39cdf23 commit ea1affb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/Shell-Completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down

0 comments on commit ea1affb

Please sign in to comment.