Skip to content

Commit

Permalink
use rvmrcs in gem handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jan 17, 2012
1 parent a69fb50 commit 095b899
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/override_gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
if [[ ${rvm_leave_gem_alone:-0} -eq 0 ]]; then
function gem
{
typeset result
(
typeset result rvmrc
for rvmrc in /etc/rvmrc "$HOME/.rvmrc"
do [[ -s "$rvmrc" ]] && source "$rvmrc" || true
done
command gem "$@" || result=$?
hash -r
return ${result:-0}
)
}
fi

0 comments on commit 095b899

Please sign in to comment.