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 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

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 )

Google photo

You are commenting using your Google 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