Created
November 17, 2019 18:43
-
-
Save grimzy/83d8a5acc9eeacce6539b89aa5e2c6ca to your computer and use it in GitHub Desktop.
Uninstall all gems
This file contains hidden or 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
#!/usr/bin/env bash | |
RUBIES=$(rbenv versions --bare) | |
for ruby in $RUBIES; do | |
rbenv local "$ruby" | |
gem list --no-versions | xargs -I {} gem uninstall "{}" -aIx | |
done |
This file contains hidden or 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
gem list --no-versions | xargs -I {} gem uninstall "{}" -aIx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment