Merge pull request #537 from HeroicEric/add-homebrew-zsh-instructions

Add Homebrew instructions for ZSH
This commit is contained in:
Daniel Perez 2019-07-22 14:06:18 +01:00 committed by GitHub
commit 7b0035b720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,11 +66,25 @@ If you are using a framework, such as oh-my-zsh, use these lines. (Be sure
that if you make future changes to .zshrc these lines remain _below_ the line
where you source your framework.)
Installation via **Git**:
```shell
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
```
Installation via **Homebrew**:
?> If you have Homebrew's ZSH completions configured, the second line below is
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
```
If you are not using a framework, or if on starting your shell you get an
error message like 'command not found: compinit', then add this line before
the ones above.