Search code examples
ruby-on-railsmacosterminalrvmgemset

How to keep gemset on changing tab in mac terminal?


I am trying to keep the gemset of rvm when I create a new terminal tab on Mac OS. I know that I can set a gemset as a default but I don't want to do this.

Maybe someone can help me with this question.

Thanks a lot.


Solution

  • Create a ruby-version file with rvm. In terminal, go to project directory and run: rvm --ruby-version use 1.9.3@my_app

    Here 1.9.3 is your current ruby version and my_app is gemset name.