From 44c2378f2a8bd09df4dfd360e238d5aa7209ea98 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 1 Jan 2013 13:27:39 -0600 Subject: [PATCH] Shims include the full path to rbenv This makes it possible to execute rbenv shims without rbenv's bin directory in the path. --- libexec/rbenv-rehash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index aa924efe..07608d9d 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -57,7 +57,7 @@ if [ "\$program" = "ruby" ]; then fi export RBENV_ROOT="$RBENV_ROOT" -exec rbenv exec "\$program" "\$@" +exec "$(command -v rbenv)" exec "\$program" "\$@" SH chmod +x "$PROTOTYPE_SHIM_PATH" }