rbenv for ruby versions on macOS

It appears that though very popular, RVM overrides the cd shell command, which could lead to unexpected behavior.

Therefore, there are some alternatives out there:

Out of the three, I picked rbenv which seemed easy to install and use:

  • brew install rbenv
  • rbenv init
  • add eval "$(rbenv init -)" to ~/.bash_profile
  • rbenv versions
    to see that everything is ok