1
0
Fork 0

Sped up rbenv startup times.

Rbenv attempts to rehash EVERY gem on startup time, and for users with a lot of gems, this can slow the terminal down DRAMATICALLY.

Adding `--no-rehash` to the init command can speed up terminal load time dramatically, at the cost of users having to rehash manually more often.

This fixes issue sorin-ionescu/prezto#335
pull/336/head
Jeff Sandberg 12 years ago
parent 13b501adaf
commit 275f617c7c

@ -17,11 +17,11 @@ if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
# Load manually installed rbenv into the shell session. # Load manually installed rbenv into the shell session.
elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
path=("$HOME/.rbenv/bin" $path) path=("$HOME/.rbenv/bin" $path)
eval "$(rbenv init - zsh)" eval "$(rbenv init - --no-rehash zsh)"
# Load package manager installed rbenv into the shell session. # Load package manager installed rbenv into the shell session.
elif (( $+commands[rbenv] )); then elif (( $+commands[rbenv] )); then
eval "$(rbenv init - zsh)" eval "$(rbenv init - --no-rehash zsh)"
# Install local gems according to operating system conventions. # Install local gems according to operating system conventions.
else else

Loading…
Cancel
Save