Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM in Elementary Luna OS

I get the error "RVM is not a function" when trying to use it in Elementary Luna OS' terminal. There is an explanation here http://rvm.io/integration/gnome-terminal, but Elementary OS'terminal has no setting menu(!) -- so how can this be fixed in this OS?

like image 712
bulldog_in_the_dream Avatar asked Aug 23 '13 22:08

bulldog_in_the_dream


2 Answers

Just open a terminal and paste this:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile

then execute this:

source ~/.bash_profile

and it should work

like image 126
Gnagno Avatar answered Sep 19 '22 18:09

Gnagno


You should be able to approximate that setup by appending this to your ~/.bashrc file (rvm.sh might not be the right name, but it's something like that). You may have to log in and out for it to take effect.

source /etc/profile.d/rvm.sh

Or instead append this, which should include everything under /etc/profile.d/. It should be very similar to checking the setting in gnome-terminal:

source /etc/profile
like image 30
bioneuralnet Avatar answered Sep 18 '22 18:09

bioneuralnet