speed up rbenv-init

Use `rbenv-commands` instead of `rbenv commands`. The latter
unnecessarily goes through `rbenv` executable.

Fixes #254
This commit is contained in:
Ruben Verborgh 2012-08-13 19:08:39 +02:00 committed by Mislav Marohnić
parent 349236c932
commit cf28136003

View file

@ -82,7 +82,7 @@ if [ -z "$no_rehash" ]; then
echo 'rbenv rehash 2>/dev/null' echo 'rbenv rehash 2>/dev/null'
fi fi
commands=(`rbenv commands --sh`) commands=(`rbenv-commands --sh`)
IFS="|" IFS="|"
cat <<EOS cat <<EOS
rbenv() { rbenv() {