This plugin is based on the zsh-pyenv plugin. This plugin will install rbenv and make it readily available.
It also comes with two additional plugins:
- ruby-build which makes the ruby install command available.
- rbenv-update which will check for and update rbenv and all its plugins.
If you want to upgrade to the latest rbenv: $ rbenv update
sudo apt install build-essential libssl-dev zlib1g-dev
Clone this repository into your desired location. (I have mine installed in .zsh/plugins
) and source it in your .zshrc
git clone https://github.com/ecortinas/zsh-rbenv.git ~/.zsh/plugins
echo "source ~/.zsh/plugins/zsh-rbenv.plugin.zsh" >> ~/.zshrc