Permalink
Browse files

shorten a one-liner to uninstall all rubygems

  • Loading branch information...
naoty committed Jun 19, 2012
1 parent 6c88fe9 commit 73f5988dfe42990fbac6c7380f095219b1215e03
Showing with 1 addition and 3 deletions.
  1. +1 −3 gem_uninstall_all
View
@@ -1,5 +1,3 @@
#!/bin/sh
-for gem in `gem list | cut -d " " -f 1`; do
- yes | gem uninstall $gem -a
-done
+gem list --no-versions | xargs gem uninstall -a

0 comments on commit 73f5988

Please sign in to comment.