pyenv/libexec/rbenv-plugin-scripts

20 lines
325 B
Text
Raw Normal View History

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