Use suggested post-installation steps
Thanks, @jvns!
This commit is contained in:
parent
1733a78133
commit
eab6e9f7f3
@ -95,20 +95,17 @@ Create a Homebrew installation wherever you extract the tarball. Whichever `brew
|
|||||||
|
|
||||||
## Post-installation steps
|
## Post-installation steps
|
||||||
|
|
||||||
Before completing installation, Homebrew installer will provide some required "Next steps" instructions.
|
When you install Homebrew, it prints some directions for updating your shell's config.
|
||||||
These instructions configure your shell to evaluate the output of `brew shellenv`,
|
If you don't follow those directions, Homebrew will not work.
|
||||||
which will load `brew` into your shell environment for use.
|
|
||||||
|
|
||||||
While it's difficult to document the precise path for every shell,
|
You need to update your shell's config file (which file exactly depends on your shell, for example `~/.bashrc` or `~/.zshrc`) to include this:
|
||||||
typically, what follows must be in your shell's `rc` or `profile` file:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
eval "<Homebrew prefix path>/bin/brew shellenv)"
|
eval "<Homebrew prefix path>/bin/brew shellenv)"
|
||||||
```
|
```
|
||||||
|
|
||||||
where `${HOMEBREW_PREFIX}` is the Homebrew installation directory.
|
Replace `<Homebrew prefix path>` with the directory where Homebrew is installed on your system.
|
||||||
Replace this with the installation directory on your system.
|
You can find Homebrew's default install location [in this FAQ entry](https://docs.brew.sh/FAQ#why-should-i-install-homebrew-in-the-default-location).
|
||||||
See the [FAQ about default installation locations](FAQ.md#why-should-i-install-homebrew-in-the-default-location).
|
|
||||||
|
|
||||||
For more insight, re-run the installer or inspect [the installer's source](https://github.com/Homebrew/install/blob/deacfa6a6e62e5f4002baf9e1fac7a96e9aa5d41/install.sh#L1072-L1088)
|
For more insight, re-run the installer or inspect [the installer's source](https://github.com/Homebrew/install/blob/deacfa6a6e62e5f4002baf9e1fac7a96e9aa5d41/install.sh#L1072-L1088)
|
||||||
to see how the installer constructs the path it recommends.
|
to see how the installer constructs the path it recommends.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user