Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我.rvmrc的文件内容如下:
.rvmrc
rvm --install use 1.9.3@my_gemset && rvm rubygems 1.8.6 && gem list
不幸的是,即使我当前的 rubygems 版本是 1.8.6,这也会导致重新安装 rubygems。这不是一个大问题,但每当我打开一个新选项卡或必须移出并移回应用程序目录时,这都是一个小麻烦。
如果 RubyGems 已经是指定版本,是否可以跳过安装?
you would need to check rubygems version:
rvm --install --create use 1.9.3@my_gemset && { [[ "$(gem --version)" =~ 1.8.6 ]] || rvm rubygems 1.8.6 } && gem list