瀏覽代碼

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.
pull/360/head^2
Mislav Marohnić 10 年之前
父節點
當前提交
e851250da6
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      libexec/rbenv-exec
  2. +1
    -1
      libexec/rbenv-whence
  3. +1
    -1
      libexec/rbenv-which

+ 1
- 1
libexec/rbenv-exec 查看文件

@ -18,7 +18,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
exec rbenv shims --short
exec rbenv-shims --short
fi
RBENV_VERSION="$(rbenv-version-name)"

+ 1
- 1
libexec/rbenv-whence 查看文件

@ -8,7 +8,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --path
exec rbenv shims --short
exec rbenv-shims --short
fi
if [ "$1" = "--path" ]; then

+ 1
- 1
libexec/rbenv-which 查看文件

@ -12,7 +12,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
exec rbenv shims --short
exec rbenv-shims --short
fi
remove_from_path() {

Loading…
取消
儲存