Skip to content

Instantly share code, notes, and snippets.

@boriscy
Created June 19, 2025 13:37
Show Gist options
  • Save boriscy/6390f93490f5e8c6520e293b3f612fe6 to your computer and use it in GitHub Desktop.
Save boriscy/6390f93490f5e8c6520e293b3f612fe6 to your computer and use it in GitHub Desktop.

Install asdf

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

Install or update livebook

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment