Created
September 20, 2012 00:18
-
-
Save camiloribeiro/3753183 to your computer and use it in GitHub Desktop.
Reinstall all gems
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
gem list | cut -d ' ' -f 1 | tee gems.txt | xargs gem uninstall -I -a && for path in $(echo `gem env path` | tr ":" "\n"); do rm -rf ${path}/specifications/* ${path}/cache/*; done && cat gems.txt | xargs gem install | |
rm gems.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment