mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
look for plugin scripts to extend functionality
This commit is contained in:
parent
4668a2e2ed
commit
a9837f3a06
1 changed files with 8 additions and 0 deletions
|
@ -8,5 +8,13 @@ fi
|
|||
|
||||
RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")"
|
||||
|
||||
shopt -s nullglob
|
||||
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${HOME}/.rbenv/rbenv.d/exec/*.bash)
|
||||
shopt -u nullglob
|
||||
|
||||
for script in $RBENV_EXEC_PLUGINS; do
|
||||
source $script
|
||||
done
|
||||
|
||||
shift 1
|
||||
exec -a "$RBENV_COMMAND" "$RBENV_COMMAND_PATH" "$@"
|
||||
|
|
Loading…
Reference in a new issue