-
-
Save gmanley/540600 to your computer and use it in GitHub Desktop.
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
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
#!/bin/bash | |
# To uninstall all gems | |
GEMS=`gem list --no-versions` | |
echo $GEMS >> ~/Desktop/gems_backup.txt | |
for x in $GEMS ; do yes | gem uninstall -a $x; done | |
# This uninstalls all your gems without prompts and backs up the names to a file named 'gems_backup.txt' on the desktop. | |
# Modified version of a script from: http://loopkid.net/articles/2008/05/31/uninstall-all-gems |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment