Skip to content

Instantly share code, notes, and snippets.

@don-smith
Created August 16, 2010 01:37
Show Gist options
  • Save don-smith/526232 to your computer and use it in GitHub Desktop.
Save don-smith/526232 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To uninstall all gems
GEMS=`gem list --no-versions`
for x in $GEMS ; do gem uninstall $x; done
# In a future revision it would be
# nice to prevent all the prompts but it's
# still faster than the alternative as it is
# 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