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
#!/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 |
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
if [[ -s "/usr/local/rvm/environments/ruby-1.9.2-p136@fat" ]] ; then | |
. "/usr/local/rvm/environments/ruby-1.9.2-p136@fat" | |
else | |
rvm --create use "ruby-1.9.2-p136@fat" | |
fi |