1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 22:03:52 -05:00

Use plugin-scripts

This commit is contained in:
Joshua Peek
2011-09-21 12:38:58 -05:00
parent 789ace54ec
commit 96b98ed039
3 changed files with 6 additions and 18 deletions

View File

@@ -16,12 +16,8 @@ fi
RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")"
RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}"
shopt -s nullglob
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${RBENV_ROOT}/rbenv.d/exec/*.bash)
shopt -u nullglob
for script in ${RBENV_EXEC_PLUGINS[@]}; do
source $script
for script in $(rbenv-plugin-scripts exec); do
source $script;
done
shift 1