瀏覽代碼

Merge pull request #179 from johnwilliams/master

rbenv-init arguments should be allowed in any order
pull/360/head^2
Sam Stephenson 14 年之前
父節點
當前提交
9ea1f7d53e
共有 1 個檔案被更改,包括 12 行新增9 行删除
  1. +12
    -9
      libexec/rbenv-init

+ 12
- 9
libexec/rbenv-init 查看文件

@ -3,16 +3,19 @@ set -e
[ -n "$RBENV_DEBUG" ] && set -x
print=""
if [ "$1" = "-" ]; then
print=1
shift
fi
no_rehash=""
if [ "$1" = "--no-rehash" ]; then
no_rehash=1
shift
fi
for args in "$@"
do
if [ "$args" = "-" ]; then
print=1
shift
fi
if [ "$args" = "--no-rehash" ]; then
no_rehash=1
shift
fi
done
shell="$1"
if [ -z "$shell" ]; then

Loading…
取消
儲存