Skip to content

Instantly share code, notes, and snippets.

@mikldt
Created February 14, 2010 20:31
Show Gist options
  • Save mikldt/304247 to your computer and use it in GitHub Desktop.
Save mikldt/304247 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
# Uninstall all the gems installed to your home directory, unless of course they have a dash in the name.
(echo "uninstall --install-dir=~/.gem/ruby/1.8";(ls ~/.gem/ruby/1.8/gems | grep -v rack | sed 's/\-[^ ]*//g')) | xargs gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment