Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created March 16, 2012 16:28
Show Gist options
  • Save mtheoryx/2050884 to your computer and use it in GitHub Desktop.
Save mtheoryx/2050884 to your computer and use it in GitHub Desktop.
'type gem' output
gem is a function
gem ()
{
typeset result;
( typeset rvmrc;
for rvmrc in /etc/rvmrc "${HOME:-}/.rvmrc";
do
[[ -s "${rvmrc}" ]] && source "${rvmrc}" || true;
done;
command gem "$@" ) || result=$?;
hash -r;
return ${result:-0}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment