Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add gem hook

  • Loading branch information...
commit ee8aee678b19924437eec9351c98929146f626bf 1 parent 8940cac
@Sutto Sutto authored
Showing with 11 additions and 0 deletions.
  1. +10 −0 scripts/override_gem
  2. +1 −0  scripts/rvm
View
10 scripts/override_gem
@@ -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
View
1  scripts/rvm
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.