I’d been using pyenv, rbenv, and nodebrew until now, but I switched to asdf, so I’m leaving some migration notes.
https://asdf-vm.com/
Environment
- M2 Mac
Installation
$ brew install asdf
Run this.
$ echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
Run this to set up the PATH.
Installing each tool 🚀
$ asdf install python latest
$ asdf install ruby latest
$ asdf install nodejs latest
Specify versions as needed.
Cleanup 🧹
Remove the pyenv, rbenv, and nodebrew settings that were written in ~/.zshrc.
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# rbenv
[[ -d ~/.rbenv ]] && \
export PATH=${HOME}/.rbenv/bin:${PATH} && \
eval "$(rbenv init -)"
export PATH=$HOME/.nodebrew/current/bin:$PATH