jenv 的 github 地址:https://github.com/jenv/jenv
安装
$ brew install jenv
安装成功后需要进行一下简单的配置,让它可以起作用
- $ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile
- $ echo 'eval "$(jenv init -)"' >> ~/.bash_profile
- $ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
- $ echo 'eval "$(jenv init -)"' >> ~/.zshrc
$ jenv doctor
image.png