Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically start Ruby Version Manager

Tags:

ruby

rvm

Is there a way to automatically load rvm on start up?

Every time I open a new terminal window I need to type rvm 1.9.2 to be able to use the gem set. Can I add 1.9.2 as a default?

like image 612
deb Avatar asked Feb 16 '26 12:02

deb


2 Answers

There are several ways

The normal one is

rvm use 1.9.2 --default

You could also create a file .rvmrc which can also load a specific gemset per folder. For example if you have an application that uses the gemset 1.9.2@myapp, your .rvmrc in myapp could be:

# myapp/.rvmrc
rvm use 1.9.2@myapp --create
like image 154
ersamy Avatar answered Feb 21 '26 05:02

ersamy


you should be able to simply do this;

rvm --default use 1.9.2
like image 32
ennuikiller Avatar answered Feb 21 '26 05:02

ennuikiller