Skip to content

Commit

Permalink
pyenv: run pyenv init with --no-rehash (ohmyzsh#8917)
Browse files Browse the repository at this point in the history
Add --no-rehash to the pyenv init command, which was removed in [ohmyzsh#4492].

The rehash was likely disabled because it can affect shell startup times.
It should only be necessary when installing or removing Python versions.

See [pyenv/pyenv#784] and [sorin-ionescu/prezto#1603] for more detail.

[ohmyzsh#4492]: ohmyzsh#4492
[pyenv/pyenv#784]: pyenv/pyenv#784
[sorin-ionescu/prezto#1603]: sorin-ionescu/prezto#1603
  • Loading branch information
tilgovi committed Sep 9, 2020
1 parent bd04003 commit ee0ab79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pyenv/pyenv.plugin.zsh
Expand Up @@ -29,7 +29,7 @@ if [[ $FOUND_PYENV -ne 1 ]]; then
fi

if [[ $FOUND_PYENV -eq 1 ]]; then
eval "$(pyenv init - zsh)"
eval "$(pyenv init - --no-rehash zsh)"
if (( $+commands[pyenv-virtualenv-init] )); then
eval "$(pyenv virtualenv-init - zsh)"
fi
Expand Down

0 comments on commit ee0ab79

Please sign in to comment.