Rbenv Rehash

Yesterday, I decided to switch from using RVM to Rbenv for Ruby version management. I know both have been around for years.

It is sensible decision because I don’t know how to fix the current issues with RVM which are pretty serious from segmentation faults to other cryptic errors. I know it will improve over time but for now, change makes sense.

The only thing annoying about it is:

rbenv rehash

There’s a need to do that every time you install a dependency.

Of course, it is less annoying with an alias:

alias rr='rbenv rehash'

But it’s even better with a plugin to help you avoid doing that all the time.

I found rbenv-gem-rehash which is definitely helpful.