mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Completions for global, local, prefix, shell
This commit is contained in:
parent
43520db389
commit
f1ca8906c0
4 changed files with 18 additions and 1 deletions
|
@ -2,6 +2,12 @@
|
|||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
# Provide rbenv completions
|
||||
if [ "$1" = "--complete" ]; then
|
||||
echo system
|
||||
exec rbenv-versions --bare
|
||||
fi
|
||||
|
||||
RBENV_VERSION="$1"
|
||||
RBENV_VERSION_FILE="${RBENV_ROOT}/global"
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ set -e
|
|||
|
||||
# Provide rbenv completions
|
||||
if [ "$1" = "--complete" ]; then
|
||||
shift
|
||||
echo system --unset
|
||||
exec rbenv-versions --bare
|
||||
fi
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
# Provide rbenv completions
|
||||
if [ "$1" = "--complete" ]; then
|
||||
echo system
|
||||
exec rbenv-versions --bare
|
||||
fi
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
export RBENV_VERSION="$1"
|
||||
elif [ -z "$RBENV_VERSION" ]; then
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
# Provide rbenv completions
|
||||
if [ "$1" = "--complete" ]; then
|
||||
echo system --unset
|
||||
exec rbenv-versions --bare
|
||||
fi
|
||||
|
||||
version="$1"
|
||||
|
||||
if [ -z "$version" ]; then
|
||||
|
|
Loading…
Reference in a new issue