Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installed RVM, rvm commands do not work

I just went through the RVM install.

I did this command:

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

and everything ran fine. Then in my user home directory, in .bash_profile I added

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Then I started a new shell just to be sure. And then I tried

rvm 

and got the error that

No command 'rvm' found

Any ideas why that might happen?

like image 915
Genadinik Avatar asked Dec 12 '22 13:12

Genadinik


1 Answers

maybe it is because .bash_profile only runs on login, if you run a new shell it only executes .bashrc

You could test using

> bash -l
like image 101
Jim Morris Avatar answered Dec 25 '22 16:12

Jim Morris