ソースを参照

Extract rbenv-shims

pull/360/head^2
Sam Stephenson 15年前
コミット
61830048d5
2個のファイルの変更18行の追加4行の削除
  1. +1
    -4
      libexec/rbenv-exec
  2. +17
    -0
      libexec/rbenv-shims

+ 1
- 4
libexec/rbenv-exec ファイルの表示

@ -4,10 +4,7 @@ set -e
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
for command in "${RBENV_ROOT}/shims/"*; do
echo "${command##*/}"
done
exit
exec rbenv shims --short
fi
RBENV_COMMAND="$1"

+ 17
- 0
libexec/rbenv-shims ファイルの表示

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --short
exit
fi
for command in "${RBENV_ROOT}/shims/"*; do
if [ "$1" = "--short" ]; then
echo "${command##*/}"
else
echo "$command"
fi
done | sort

読み込み中…
キャンセル
保存