mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13:53 -05:00
Completions for global, local, prefix, shell
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
set -e
|
set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide rbenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo system
|
||||||
|
exec rbenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
RBENV_VERSION="$1"
|
RBENV_VERSION="$1"
|
||||||
RBENV_VERSION_FILE="${RBENV_ROOT}/global"
|
RBENV_VERSION_FILE="${RBENV_ROOT}/global"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ set -e
|
|||||||
|
|
||||||
# Provide rbenv completions
|
# Provide rbenv completions
|
||||||
if [ "$1" = "--complete" ]; then
|
if [ "$1" = "--complete" ]; then
|
||||||
shift
|
|
||||||
echo system --unset
|
echo system --unset
|
||||||
exec rbenv-versions --bare
|
exec rbenv-versions --bare
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
set -e
|
set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide rbenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo system
|
||||||
|
exec rbenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
export RBENV_VERSION="$1"
|
export RBENV_VERSION="$1"
|
||||||
elif [ -z "$RBENV_VERSION" ]; then
|
elif [ -z "$RBENV_VERSION" ]; then
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
set -e
|
set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide rbenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo system --unset
|
||||||
|
exec rbenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
version="$1"
|
version="$1"
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user