sstephenson/rbenv — pull request #663 by kevinburke (2014-11-29 05:21:22+00:00)
Title: Use `command` to run rbenv rehash

In the event that `eval "$(rbenv init -)"` is called from a function named
rbenv (which I do to get rbenv to load lazily in my shell), evaluating the
phrase `rbenv rehash` will cause the outer function to run again (causing an
infinite loop).

This change makes it clear you want the command named rbenv and not a function
which may exist in the environment.

I ran this locally and ran the tests to ensure this change doesn't break anything.

An example of where this is useful would be if you wanted to lazy load the rbenv process on its first invocation (like I do). You can do so with a function like this in your .zshrc:

```zsh
rbenv() {
eval "$( command rbenv init - )"
rbenv "$@"
}
```

Otherwise running `rbenv init -` takes anywhere from 90ms to 120ms in the shell startup process. Without this pull request, the function above calls itself in an infinite loop.