0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

今までpyenv,rbenv,nodebrewを使っていましたが、asdfに乗り換えたので移行メモを残します。
https://asdf-vm.com/

環境

  • M2 Mac

インストール

$ brew install asdf

を実行

$ echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc

を実行してPATHを通す

各種導入🚀

$ asdf install python latest
$ asdf install ruby latest
$ asdf install nodejs latest

適宜、バージョンを指定する。

お掃除🧹

~/.zshrcに書かれていたpyenv,rbenv,nodebrewの設定を削除

./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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?