开发者

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
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜