소스 검색

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

불러오는 중...
취소
저장