mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
20 lines
347 B
Text
20 lines
347 B
Text
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||
|
|
||
|
# Provide rbenv completions
|
||
|
if [ "$1" = "--complete" ]; then
|
||
|
echo exec
|
||
|
echo rehash
|
||
|
echo which
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
shopt -s nullglob
|
||
|
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/$1/*.bash ${RBENV_ROOT}/rbenv.d/$1/*.bash)
|
||
|
shopt -u nullglob
|
||
|
|
||
|
for script in ${RBENV_EXEC_PLUGINS[@]}; do
|
||
|
echo $script
|
||
|
done
|