How to automatically start Ruby Version Manager
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?
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
you should be able to simply do this;
rvm --default use 1.9.2
精彩评论