From 283e67b57e8ab0bbbe504aab6866729b0035186a Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 27 Dec 2012 13:41:55 -0600 Subject: [PATCH] When the ruby shim is invoked with a script, set RBENV_DIR to the script's dirname --- libexec/rbenv-rehash | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index eebc4d3c..2b5ffecc 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -37,8 +37,25 @@ create_prototype_shim() { cat > "$PROTOTYPE_SHIM_PATH" <