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
Sources
- https://metova.com/choosing-a-ruby-version-management-tool-rbenv-vs-rvm/
- https://medium.com/@hpux/using-chruby-as-the-default-ruby-version-manager-c11346e3cc
- https://www.engineyard.com/blog/how-to-install-ruby-on-a-mac-with-chruby-rbenv-or-rvm
- http://www.mindfiresolutions.com/blog/2018/01/rbenv-vs-rvm/
- https://stevemarshall.com/journal/why-i-use-chruby/