Skip to content

Commit ef36046

Browse files
committed
Add Homebrew instructions for ZSH
Adds instructions for adding asdf to your shell when using zsh and Homebrew. This was mostly copied from asdf-vm#496
1 parent 50c4966 commit ef36046

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/core-manage-asdf-vm.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,25 @@ If you are using a framework, such as oh-my-zsh, use these lines. (Be sure
6666
that if you make future changes to .zshrc these lines remain _below_ the line
6767
where you source your framework.)
6868

69+
Installation via **Git**:
70+
6971
```shell
7072
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
7173
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
7274
```
7375

76+
Installation via **Homebrew**:
77+
78+
?> If you have Homebrew's ZSH completions configured, the second line below is
79+
unnecessary. See [Configuring Completions in
80+
ZSH](https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh) in
81+
the Homebrew docs.
82+
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.
86+
```
87+
7488
If you are not using a framework, or if on starting your shell you get an
7589
error message like 'command not found: compinit', then add this line before
7690
the ones above.

0 commit comments

Comments
 (0)