rbenv setup with ZSh and Oh-my-zsh

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.

  1. Install rbenv (do not add losing and init script to your .zshrc)
  2. Install plugins/rbenv in oh-my-Zsh
  3. Remove loading 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.

Advertisements