开发者

How to automatically start Ruby Version Manager

开发者 https://www.devze.com 2023-03-30 11:59 出处:网络
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?Ther

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
0

精彩评论

暂无评论...
验证码 换一张
取 消