boddhisattva
boddhisattva

Reputation: 7380

How do we remove RVM Default?

I have set my default RVM to ruby 1.9.2 . I want to remove this and keep it nil.

How can I do the same ?

Thank you.

Upvotes: 3

Views: 1677

Answers (3)

mpapis
mpapis

Reputation: 53158

Removing any alias is as simple as:

rvm alias delete default

It's better to use it over rm ~/.rvm/config/alias suggested by @Sunny J. as it does additional cleaning steps.

It's also better than rvm reset as it only removes the alias, not resetting all rvm settings.

Upvotes: 7

sunnyrjuneja
sunnyrjuneja

Reputation: 6123

Based on https://github.com/wayneeseguin/rvm/blob/master/scripts/functions/reset

In order to remove your default without effecting your other settings in rvm,

rm ~/.rvm/config/alias

Modifying as necessary for your correct rvm path.

Upvotes: 2

Confusion
Confusion

Reputation: 16841

See rvm -h:

reset       :: remove current and stored default & system settings.

So rvm reset is what you are looking for.

Upvotes: 1

Related Questions