Skip to content

Commit

Permalink
Add gem hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sutto committed Aug 23, 2010
1 parent 8940cac commit ee8aee6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/override_gem
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

if [[ -z "$rvm_leave_gem_alone" ]]; then
gem() {
command gem "$@"
local gem_result="$?"
hash -r
return $gem_result
}
fi
1 change: 1 addition & 0 deletions scripts/rvm
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then
source "$rvm_scripts_path/cli"
source "$rvm_scripts_path/manpages"
source "$rvm_scripts_path/cd"
source "$rvm_scripts_path/override_gem"

rvm_loaded_flag=1

Expand Down

0 comments on commit ee8aee6

Please sign in to comment.