##when you type “rvm use …” it comes up an “rvm not a function”:

vim ~/.bashrc

add

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

at the end of the file. Then type:

rvm use ruby-2.2.1 --default