pyenv/libexec/rbenv-plugin-scripts

20 lines
325 B
Text
Raw Normal View History

2011-09-21 13:36:07 -04:00
#!/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
2011-09-21 13:39:26 -04:00
SCRIPTS=(/etc/rbenv.d/$1/*.bash ${RBENV_ROOT}/rbenv.d/$1/*.bash)
2011-09-21 13:36:07 -04:00
shopt -u nullglob
2011-09-21 13:39:26 -04:00
for script in ${SCRIPTS[@]}; do
2011-09-21 13:36:07 -04:00
echo $script
done