From 7fe9231e64d7ba28b7da4c36c3aa48676f66dac1 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 12 Dec 2012 21:40:05 -0600 Subject: [PATCH] Fix `rbenv prefix` for `system` version Should be `/usr` or `/usr/local`, not `/usr/bin` or `/usr/local/bin` --- libexec/rbenv-prefix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/rbenv-prefix b/libexec/rbenv-prefix index e6094aec..1762f23e 100755 --- a/libexec/rbenv-prefix +++ b/libexec/rbenv-prefix @@ -16,7 +16,8 @@ fi if [ "$RBENV_VERSION" = "system" ]; then RUBY_PATH="$(rbenv-which ruby)" - echo "${RUBY_PATH%/*}" + RUBY_PATH="${RUBY_PATH%/*}" + echo "${RUBY_PATH%/bin}" exit fi