brew install asdf
Add the following to ~/.zshrc
:
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
List plugins and add new
asdf plugin list
asdf plugin list all
asdf plugin add <plugin_name>
asdf install <name> latest
# asdf install erlang latest
List installed versions
asdf list all <name>
# asdf list all erlang
Show latest version
asdf latest <name>
# asdf latest erlang
Set default version:
asdf set -u <name> <version>
# asdf set -u erlang 27.3.4
mix escript.install hex livebook
In this case we used asdf to manage elixir versions.
Add to your shell profile or ~/.zshrc
:
export PATH="/Users/borisbarroso/.asdf/shims:$PATH"
export PATH="/Users/borisbarroso/.asdf/installs/elixir/1.18.1-otp-27/.mix/escripts:$PATH"