mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-12 13:33:45 -05:00
RBENV_ROOT defaults to ~/.rbenv
This commit is contained in:
@@ -19,8 +19,10 @@ abs_dirname() {
|
|||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
}
|
}
|
||||||
|
|
||||||
rbenv_install_location=$(abs_dirname "$(dirname $0)")
|
if [ -z "${RBENV_ROOT}" ]; then
|
||||||
export RBENV_ROOT="${rbenv_install_location}"
|
RBENV_ROOT="${HOME}/.rbenv"
|
||||||
|
fi
|
||||||
|
export RBENV_ROOT
|
||||||
|
|
||||||
libexec_path="$(abs_dirname "$0")"
|
libexec_path="$(abs_dirname "$0")"
|
||||||
export PATH="${libexec_path}:${PATH}"
|
export PATH="${libexec_path}:${PATH}"
|
||||||
|
|||||||
Reference in New Issue
Block a user