Skip to content

Instantly share code, notes, and snippets.

@okitan
Created September 8, 2010 01:36
Show Gist options
  • Save okitan/569461 to your computer and use it in GitHub Desktop.
Save okitan/569461 to your computer and use it in GitHub Desktop.
if [ $rvm_ruby_home ] ; then
alias gem='gem --config-file ~/.gemrc_for_rvm'
echo `type gem`
else
[ `type gem | awk '{print $4}'` = 'alias' ] && unalias gem
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment