From 2e3e141d2e4a209ef7b13f33ff5b0136a17638f1 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sun, 11 Sep 2011 12:05:56 -0500 Subject: [PATCH] RBENV_ROOT defaults to ~/.rbenv --- libexec/rbenv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libexec/rbenv b/libexec/rbenv index d15d6e3..275e122 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -19,8 +19,10 @@ abs_dirname() { cd "$cwd" } -rbenv_install_location=$(abs_dirname "$(dirname $0)") -export RBENV_ROOT="${rbenv_install_location}" +if [ -z "${RBENV_ROOT}" ]; then + RBENV_ROOT="${HOME}/.rbenv" +fi +export RBENV_ROOT libexec_path="$(abs_dirname "$0")" export PATH="${libexec_path}:${PATH}"