mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add --no-rehash option to rbenv-init (#170)
This commit is contained in:
parent
cd2094ff71
commit
ee5ad02d42
1 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,12 @@ if [ "$1" = "-" ]; then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
no_rehash=""
|
||||||
|
if [ "$1" = "--no-rehash" ]; then
|
||||||
|
no_rehash=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
shell="$1"
|
shell="$1"
|
||||||
if [ -z "$shell" ]; then
|
if [ -z "$shell" ]; then
|
||||||
shell="$(basename "$SHELL")"
|
shell="$(basename "$SHELL")"
|
||||||
|
@ -69,7 +75,9 @@ bash | zsh )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -z "$no_rehash" ]; then
|
||||||
echo 'rbenv rehash 2>/dev/null'
|
echo 'rbenv rehash 2>/dev/null'
|
||||||
|
fi
|
||||||
|
|
||||||
commands=(`rbenv commands --sh`)
|
commands=(`rbenv commands --sh`)
|
||||||
IFS="|"
|
IFS="|"
|
||||||
|
|
Loading…
Reference in a new issue