瀏覽代碼

Add --no-rehash option to rbenv-init (#170)

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

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

@ -8,6 +8,12 @@ if [ "$1" = "-" ]; then
shift
fi
no_rehash=""
if [ "$1" = "--no-rehash" ]; then
no_rehash=1
shift
fi
shell="$1"
if [ -z "$shell" ]; then
shell="$(basename "$SHELL")"
@ -69,7 +75,9 @@ bash | zsh )
;;
esac
echo 'rbenv rehash 2>/dev/null'
if [ -z "$no_rehash" ]; then
echo 'rbenv rehash 2>/dev/null'
fi
commands=(`rbenv commands --sh`)
IFS="|"

Loading…
取消
儲存