Skip to content

Instantly share code, notes, and snippets.

@mauvehed
Last active January 27, 2023 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauvehed/b0cd6b40d663a1a2cb652d8824582bb5 to your computer and use it in GitHub Desktop.
Save mauvehed/b0cd6b40d663a1a2cb652d8824582bb5 to your computer and use it in GitHub Desktop.
asdf commands (multi-language version manager)

ASDF

Getting started

MacOS

brew install gpg gawk asdf

Add to shell (~/.zshrc)

# execute asdf
[ -f /opt/homebrew/opt/asdf/libexec/asdf.sh ] && . /opt/homebrew/opt/asdf/libexec/asdf.sh

Ruby

Install Plugin

asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git

Install Ruby

asdf install ruby latest

List Versions Installed

asdf list ruby

Set global version

asdf global ruby latest

Set local version ($CWD)

asdf local ruby latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment