Skip to content

Commit

Permalink
Remove diff formatting (keep only relevant line) + clarify to append …
Browse files Browse the repository at this point in the history
…the line after initialization
  • Loading branch information
vtenfys authored Jan 20, 2021
1 parent a04b489 commit 39cdf23
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/Shell-Completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down

0 comments on commit 39cdf23

Please sign in to comment.