rbenv setup with ZSh and Oh-my-zsh

black and silver laptop computer on table

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 load and init script to your .zshrc)
  2. Install plugins/rbenv in oh-my-Zsh
  3. 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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: