and add the following line to the end (and save the file)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function
Then reload the shell session using the command -
source ~/.bashrc
Now you can test whether the RVM has been installed successfully or not. Open terminal and execute the command -