Looking for something like gem list within an RVM gemset but to have it ignore gems in the global and default gemsets so I can see, easily, exactly what gems are in the active gemset (and only the active gemset).
Looking for something like gem list within an RVM gemset but to have it
Share
for global:
for other gemsets:
@globalis a gemset that all other gemsets inherit for given ruby, it does not inherit for m itself so it’s safe to select it and rungem listin it’s context.For all other gemsets you can use the fact that
gem listdisplays gems from all paths available inGEM_HOMEandGEM_PATH, resettingGEM_PATHto be equalGEM_HOMEwill make only one path available – the one fromGEM_HOMEsogem listwill only show gems in the selected gemset, ignoring all other gemsets (at this time the@global, but RVM 2.0 will support multiple gemsets inheritance).