cfi67g
Last Updated: February 25, 2016
·
1.624K
· 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

276

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

over 1 year ago ·
277

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

@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 ·
1492

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

over 1 year ago ·
6730

Like like zshell. Thanks Alex!

over 1 year ago ·