I was installing Ruby on rails, I had installed xcode, and use the following line to install rvm
\curl -L https://get.rvm.io | bash -s stable
and then went to check the rvm
rvm | head -n 1
message I received was
-bash: rvm: command not found
using latest Mac High Sierra v10.13