mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-26 16:51:53 +00:00
19 lines
325 B
Bash
Executable file
19 lines
325 B
Bash
Executable file
#!/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
|
|
SCRIPTS=(/etc/rbenv.d/$1/*.bash ${RBENV_ROOT}/rbenv.d/$1/*.bash)
|
|
shopt -u nullglob
|
|
|
|
for script in ${SCRIPTS[@]}; do
|
|
echo $script
|
|
done
|