brew install rbenv
# 用来编译安装 ruby
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
# 用来管理 gemset, 可选, 因为有 bundler 也没什么必要
git clone https://github.com/jf/rbenv-gemset.git $HOME/.rbenv/plugins/rbenv-gemset
# 通过 rbenv update 命令来更新 rbenv 以及所有插件, 推荐
git clone https://github.com/rkh/rbenv-update.git $HOME/.rbenv/plugins/rbenv-update
# 使用 Ruby China 的镜像安装 Ruby, 国内用户推荐
git clone [email protected]:AndorChen/rbenv-china-mirror.git $HOME/.rbenv/plugins/rbenv-china-mirror
标签:git,rbenv,clone,mac,github,com,plugins,安装
From: https://www.cnblogs.com/guangzan/p/17090795.html