It looks like you have misuse in your RC files, read here: https://rvm.io/support/faq/#shell_login
basically .profileshould not be used as a bash login RC script, it is preferable to .bash_logineither .bash_profile.
To fix your profile files that you need to run:
rvm get stable --auto-dotfiles
and restart your computer - yes restart your computer, it's just a minute on mac