How do I rename a gemset?

Solution 1:

There is an RVM gemset rename command. I'm not sure when it was introduced but it is present in 1.0.16.

rvm gemset rename current_gemset_name new_gemset_name

As of RVM 1.21 or higher it will automatically switch you to the newly renamed gemset.

If you are on an older version of RVM you'll also need to switch to the newly created gemset, as follows:

rvm gemset use new_gemset_name

Running the command rvm gemset list will tell you the current gemset you are operating within.

Solution 2:

I copied one with

rvm gemset copy <gemset_from> <gemset_dest>

and then deleted the previous one with

rvm gemset delete <gemset_from>