소스 검색

Show usage for `rbenv which` without an argument

pull/360/head^2
Sam Stephenson 15 년 전
부모
커밋
3644840d4b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      libexec/rbenv-which

+ 5
- 0
libexec/rbenv-which 파일 보기

@ -35,6 +35,11 @@ remove_from_path() {
RBENV_VERSION="$(rbenv-version-name)"
RBENV_COMMAND="$1"
if [ -z "$RBENV_COMMAND" ]; then
echo "usage: rbenv which COMMAND" >&2
exit 1
fi
if [ "$RBENV_VERSION" = "system" ]; then
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")"

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