1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 23:03:53 -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

@@ -67,13 +67,9 @@ create_prototype_shim
shopt -s nullglob
make_shims ../versions/*/bin/*
# Find and run any plugins that might want to make shims too.
RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${RBENV_ROOT}/rbenv.d/rehash/*.bash)
shopt -u nullglob
# Restore the previous working directory.
cd "$CUR_PATH"
for script in ${RBENV_REHASH_PLUGINS[@]}; do
source $script
for script in $(rbenv-plugin-scripts rehash); do
source $script;
done