Create .ruby-version and .ruby-gemset with rvm

前端 未结 4 1642
情歌与酒
情歌与酒 2021-01-30 00:54

Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset?

With older versions of rvm, one could

4条回答
  •  梦如初夏
    2021-01-30 01:23

    All of the above examples require you to type in your ruby version and gemset name .. which is close to the same keystrokes required to vi .ruby-gemset and vi .ruby-version. Assuming you are in a directory where you've already chosen your ruby version and you are pointing at the desired gemset.. this does the trick.

    rvm --ruby-version use $(rvm-prompt)
    

提交回复
热议问题