mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Completion for exec
This commit is contained in:
parent
f1ca8906c0
commit
4923838981
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
||||||
set -e
|
set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide rbenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
for command in "${RBENV_ROOT}/shims/"*; do
|
||||||
|
echo "${command##*/}"
|
||||||
|
done
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
RBENV_COMMAND="$1"
|
RBENV_COMMAND="$1"
|
||||||
if [ -z "$RBENV_COMMAND" ]; then
|
if [ -z "$RBENV_COMMAND" ]; then
|
||||||
echo "usage: rbenv exec COMMAND [arg1 arg2...]" >&2
|
echo "usage: rbenv exec COMMAND [arg1 arg2...]" >&2
|
||||||
|
|
Loading…
Reference in a new issue