mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add bin to list plugin scripts
This commit is contained in:
parent
d289998250
commit
789ace54ec
1 changed files with 19 additions and 0 deletions
19
libexec/rbenv-plugin-scripts
Executable file
19
libexec/rbenv-plugin-scripts
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue