Skip to content

Instantly share code, notes, and snippets.

@carlosipe
Created March 29, 2017 09:13
Show Gist options
  • Select an option

  • Save carlosipe/7eedd425f19981baa2f2bc39a81b9024 to your computer and use it in GitHub Desktop.

Select an option

Save carlosipe/7eedd425f19981baa2f2bc39a81b9024 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install gs
gem install dep
}
#rbenv versions --bare
RBENVPATH=`rbenv root`
echo $RBENVPATH
RUBIES=`ls $RBENVPATH/versions`
for ruby in $RUBIES; do
echo '---------------------------------------'
echo $ruby
rbenv local $ruby
uninstall
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment