Skip to content

Commit a72ceef

Browse files
committed
Docs: Homebrew setup: do not add brew commands to the shell profile
The recommended Homebrew setup required adding two `brew --prefix` commands to the shell profile. `brew` commands canbe slow, so this introduced a notable lag when sourcing the shell profile. Homebrew paths do not change, so we can determine the necessary paths one time during setup and use static paths in the shell profile.
1 parent 4149bf5 commit a72ceef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/core-manage-asdf-vm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ in Bash](https://docs.brew.sh/Shell-Completion#configuring-completions-in-bash)
5656
in the Homebrew docs.
5757

5858
```bash
59-
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.bash_profile
60-
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.bash_profile
59+
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.bash_profile
60+
echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.bash_profile
6161
```
6262

6363
#### ** ZSH **
@@ -80,9 +80,9 @@ unnecessary. See [Configuring Completions in
8080
ZSH](https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh) in
8181
the Homebrew docs.
8282

83-
```bash
84-
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.zshrc
85-
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.zshrc
83+
```shell
84+
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
85+
echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.zshrc
8686
```
8787

8888
If you are not using a framework, or if on starting your shell you get an

0 commit comments

Comments
 (0)