Search code examples
rubyrubygemsrbenv

How to check which gemset rbenv is using?


I use echo project-name > .rbenv-gemsets to create a new gemset for rbenv.

How do you check to see that it is using this gemset?

gem list is empty for the global gemset, so when I run it on the new gemset it doesn't tell me anything.


Solution

  • do a rbenv gemset active

    If you've set up rbenv, and rbenv-gemset correctly, you will see the following output:

    project-name global