Skip to content

Instantly share code, notes, and snippets.

@VladRassokhin
Created July 9, 2013 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladRassokhin/5955507 to your computer and use it in GitHub Desktop.
Save VladRassokhin/5955507 to your computer and use it in GitHub Desktop.
RVM useful scripts
  • Cleanup gemsets (remove all gems from them)
for f in `ls .rvm/gems/ | grep @`; do
  rvm use $f; 
  gem list | awk '{print $1}' | xargs -I '{}' gem uninstall -a '{}';
done
  • Remove non-global gemsets
for f in `ls .rvm/gems/ | grep @ | grep -v global`; do
  rvm use $f; 
  rvm gemset delete $f <<E
yes
E
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment