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.
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.
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.
See rvm -h
:
reset :: remove current and stored default & system settings.
So rvm reset
is what you are looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.