mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Speed up obtaining exec/which/whence
completions
Delegate to `rbenv-shims` instead of `rbenv shims` and therefore skip going through the main `rbenv` executable again that would set up a lot of the environment that was already set.
This commit is contained in:
parent
c69d9a1128
commit
e851250da6
3 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ set -e
|
||||||
|
|
||||||
# Provide rbenv completions
|
# Provide rbenv completions
|
||||||
if [ "$1" = "--complete" ]; then
|
if [ "$1" = "--complete" ]; then
|
||||||
exec rbenv shims --short
|
exec rbenv-shims --short
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RBENV_VERSION="$(rbenv-version-name)"
|
RBENV_VERSION="$(rbenv-version-name)"
|
||||||
|
|
|
@ -8,7 +8,7 @@ set -e
|
||||||
# Provide rbenv completions
|
# Provide rbenv completions
|
||||||
if [ "$1" = "--complete" ]; then
|
if [ "$1" = "--complete" ]; then
|
||||||
echo --path
|
echo --path
|
||||||
exec rbenv shims --short
|
exec rbenv-shims --short
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "--path" ]; then
|
if [ "$1" = "--path" ]; then
|
||||||
|
|
|
@ -12,7 +12,7 @@ set -e
|
||||||
|
|
||||||
# Provide rbenv completions
|
# Provide rbenv completions
|
||||||
if [ "$1" = "--complete" ]; then
|
if [ "$1" = "--complete" ]; then
|
||||||
exec rbenv shims --short
|
exec rbenv-shims --short
|
||||||
fi
|
fi
|
||||||
|
|
||||||
remove_from_path() {
|
remove_from_path() {
|
||||||
|
|
Loading…
Reference in a new issue