mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Remove diff formatting (keep only relevant line) + clarify to append the line after initialization
This commit is contained in:
parent
a04b4890a9
commit
39cdf234a2
@ -43,11 +43,10 @@ if type brew &>/dev/null; then
|
|||||||
fi
|
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
|
```sh
|
||||||
eval $(/opt/homebrew/bin/brew shellenv)
|
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
|
||||||
+ FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You may also need to forcibly rebuild `zcompdump`:
|
You may also need to forcibly rebuild `zcompdump`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user