mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Automatically add ${RBENV_ROOT}/plugins/*/bin to $PATH
This commit is contained in:
parent
f9fb3c934e
commit
8ce5e84c21
1 changed files with 10 additions and 2 deletions
|
@ -30,8 +30,16 @@ export RBENV_ROOT
|
|||
|
||||
export RBENV_HOOK_PATH="${RBENV_HOOK_PATH}:${RBENV_ROOT}/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d"
|
||||
|
||||
libexec_path="$(abs_dirname "$0")"
|
||||
export PATH="${libexec_path}:${PATH}"
|
||||
|
||||
shopt -s nullglob
|
||||
rbenv_path="$(abs_dirname "$0")"
|
||||
for plugin_bin in "${RBENV_ROOT}/plugins/"*/bin; do
|
||||
rbenv_path="${rbenv_path}:${plugin_bin}"
|
||||
done
|
||||
shopt -u nullglob
|
||||
|
||||
export PATH="${rbenv_path}:${PATH}"
|
||||
|
||||
|
||||
command="$1"
|
||||
case "$command" in
|
||||
|
|
Loading…
Reference in a new issue