From eab6e9f7f3c37ec21401471e951bf1b9f299eee4 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Tue, 18 Feb 2025 12:08:21 -0500 Subject: [PATCH] Use suggested post-installation steps Thanks, @jvns! --- docs/Installation.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/Installation.md b/docs/Installation.md index 56910eea63..cf90ebed01 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -95,20 +95,17 @@ Create a Homebrew installation wherever you extract the tarball. Whichever `brew ## Post-installation steps -Before completing installation, Homebrew installer will provide some required "Next steps" instructions. -These instructions configure your shell to evaluate the output of `brew shellenv`, -which will load `brew` into your shell environment for use. +When you install Homebrew, it prints some directions for updating your shell's config. +If you don't follow those directions, Homebrew will not work. -While it's difficult to document the precise path for every shell, -typically, what follows must be in your shell's `rc` or `profile` file: +You need to update your shell's config file (which file exactly depends on your shell, for example `~/.bashrc` or `~/.zshrc`) to include this: ```sh eval "/bin/brew shellenv)" ``` -where `${HOMEBREW_PREFIX}` is the Homebrew installation directory. -Replace this with the installation directory on your system. -See the [FAQ about default installation locations](FAQ.md#why-should-i-install-homebrew-in-the-default-location). +Replace `` with the directory where Homebrew is installed 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). 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.