Created
July 29, 2014 17:12
-
-
Save codfish/a788534ae80a4d170f4c to your computer and use it in GitHub Desktop.
Delete all local gems with this one liner. Source: http://stackoverflow.com/a/8095234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In Ruby 2.0 there are protected default gems that wont get uninstalled by this. | |
$ for i in `gem list --no-versions`; do gem uninstall -aIx $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment