How to keep gemset on changing tab in mac terminal?

147 Views Asked by At

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.

1

There are 1 best solutions below

1
Sajan On BEST ANSWER

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.