mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Add Homebrew instructions for install and bash (#496)
This commit is contained in:
parent
5a89e48045
commit
19167aafce
@ -1,5 +1,9 @@
|
||||
## Install asdf-vm
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### ** Git **
|
||||
|
||||
Clone only the latest branch:
|
||||
|
||||
```shell
|
||||
@ -14,6 +18,16 @@ cd ~/.asdf
|
||||
git checkout "$(git describe --abbrev=0 --tags)"
|
||||
```
|
||||
|
||||
#### ** Homebrew **
|
||||
|
||||
Install using the Homebrew package manager on macOS:
|
||||
|
||||
```shell
|
||||
brew install asdf
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
### Add to your Shell
|
||||
|
||||
<!-- tabs:start -->
|
||||
@ -27,11 +41,25 @@ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
|
||||
|
||||
#### ** Bash on macOS **
|
||||
|
||||
Installation via **Git**:
|
||||
|
||||
```bash
|
||||
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bash_profile
|
||||
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bash_profile
|
||||
```
|
||||
|
||||
Installation via **Homebrew**:
|
||||
|
||||
?> If you have Homebrew's Bash completions configured, the second line below is
|
||||
unnecessary. See [Configuring Completions
|
||||
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
|
||||
```
|
||||
|
||||
#### ** ZSH **
|
||||
|
||||
If you are using a framework, such as oh-my-zsh, use these lines. (Be sure
|
||||
@ -115,6 +143,10 @@ That's all! You are ready to use asdf 🎉
|
||||
|
||||
## Update
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
### ** Git **
|
||||
|
||||
```shell
|
||||
asdf update
|
||||
```
|
||||
@ -125,6 +157,14 @@ If you want the latest changes that aren't yet included in a stable release:
|
||||
asdf update --head
|
||||
```
|
||||
|
||||
### ** Homebrew **
|
||||
|
||||
```shell
|
||||
brew upgrade asdf
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
## Remove
|
||||
|
||||
Uninstalling `asdf` is as simple as:
|
||||
@ -138,6 +178,10 @@ Uninstalling `asdf` is as simple as:
|
||||
|
||||
Remove these lines and save the file.
|
||||
|
||||
2. Run `rm -rf ~/.asdf/ ~/.tool-versions` to completely remove all the asdf files from your system.
|
||||
2. Run `rm -rf ~/.asdf/ ~/.tool-versions` to completely remove all the asdf
|
||||
files from your system.
|
||||
|
||||
3. _(Optional)_ If you installed asdf using a package manager, you may want to use
|
||||
that package manager to uninstall the core asdf files.
|
||||
|
||||
That's it! 🎉
|
||||
|
Loading…
Reference in New Issue
Block a user