瀏覽代碼

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

Loading…
取消
儲存