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
Written by Alexander Tamoykin
Related protips
5 Responses
Thanks for rbenv-rehash. Never knew there is such gem.
It only overloads cd if you're using bash, since most developers use zsh now it's a bit of a non-argument.
If you still want to use gemsets with rbenv, this is a great protip https://coderwall.com/p/g2rkiw
Like like zshell. Thanks Alex!