look for plugin scripts to extend functionality

This commit is contained in:
Jamis Buck 2011-08-03 07:28:50 -06:00
parent 4668a2e2ed
commit a9837f3a06

View file

@ -8,5 +8,13 @@ fi
RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")" 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 shift 1
exec -a "$RBENV_COMMAND" "$RBENV_COMMAND_PATH" "$@" exec -a "$RBENV_COMMAND" "$RBENV_COMMAND_PATH" "$@"