I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not.
I was browsing the web for a solution and I found the following command:
After this, bash was able to see ruby. I can't understand how did this happen. From my perspective, the command was absolutely useless as I just installed the latest rvm version.