mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -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
|
||||
[ -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"
|
||||
if [ -z "$RBENV_COMMAND" ]; then
|
||||
echo "usage: rbenv exec COMMAND [arg1 arg2...]" >&2
|
||||
|
|
Loading…
Reference in a new issue