rbenv is an utility program to manage multiple Ruby programming language runtime versions.
ZSh is an alternative shell for *nix system. Oh-my-ZSh is framework for ZSh which supports themes and plugins.
rbenv provide comprehensive installation methods for different shells. This post describes the use of oh-my-Zsh rbenv plugin for rbenv setup.
- Install rbenv (do not add load and init script to your .zshrc)
- Install plugins/rbenv in oh-my-Zsh
- Remove load and init lines (if they were installed) – optional
Good things about this approach
No need to append rbenv line to .zshrc or calling rbenv init function. Those will be taken care by the plugin.