Last Updated: February 25, 2016
·
1.797K
· fsproru

From RVM to rbenv

Why switch from RVM?
- rvm is too complex
- it overrides unix cd command
- need to trust .rvmrc

Why rbenv?
- simpler interface
- no need to manage gemsets since bundler does the same thing
- doesn't need to be loaded in your shell

Steps
https://gist.github.com/1384279

Automatic rbenv rehash
If you don't want to manually run rbenv rehash every time you install/uninstall a gem that provides binaries

gem install rbenv-rehash

More
https://github.com/sstephenson/rbenv
https://github.com/scoz/rbenv-rehash

5 Responses
Add your response

Thanks for rbenv-rehash. Never knew there is such gem.

over 1 year ago ·

It only overloads cd if you're using bash, since most developers use zsh now it's a bit of a non-argument.

over 1 year ago ·

@richoh I agree. I use zsh on my local machine myself. However bash is still around (in my case it's a default shell on remote servers). At the end of the days, each solution has its advantages and disadvantages and which tool to use is the matter of taste.

@rwz, you're welcome

over 1 year ago ·

If you still want to use gemsets with rbenv, this is a great protip https://coderwall.com/p/g2rkiw

over 1 year ago ·

Like like zshell. Thanks Alex!

over 1 year ago ·