Merge pull request #553 from olets/zshrc-optimization

Docs: Homebrew setup: do not add brew commands to the shell profile
This commit is contained in:
Daniel Perez 2019-07-23 13:26:49 +01:00 committed by GitHub
commit 07211e3c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,8 @@ in Bash](https://docs.brew.sh/Shell-Completion#configuring-completions-in-bash)
in the Homebrew docs.
```bash
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.bash_profile
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.bash_profile
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.bash_profile
echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.bash_profile
```
#### ** ZSH **
@ -80,9 +80,9 @@ unnecessary. See [Configuring Completions in
ZSH](https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh) in
the Homebrew docs.
```bash
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.zshrc
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.zshrc
```shell
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.zshrc
```
If you are not using a framework, or if on starting your shell you get an