소스 검색

Define lightweight rbenv shell function to dispatch commands

pull/360/head^2
Joshua Peek 15 년 전
부모
커밋
f9225d9cb4
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      libexec/rbenv-init

+ 15
- 0
libexec/rbenv-init 파일 보기

@ -66,3 +66,18 @@ bash | zsh )
esac
echo 'rbenv rehash 2>/dev/null'
commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
function rbenv () {
command=\$1;
shift;
case \$command in
${commands[*]})
eval \`rbenv sh-\$command \$@\`;;
*)
command rbenv \$command \$@;;
esac;
};
EOS

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