mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
RBENV_ROOT defaults to ~/.rbenv
This commit is contained in:
parent
c36950a7cb
commit
2e3e141d2e
1 changed files with 4 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue