1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

pyenv: run pyenv init with --no-rehash (#8917)

Add --no-rehash to the pyenv init command, which was removed in [#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.

[#4492]: https://github.com/ohmyzsh/ohmyzsh/pull/4492
[pyenv/pyenv#784]: https://github.com/pyenv/pyenv/issues/784
[sorin-ionescu/prezto#1603]: https://github.com/sorin-ionescu/prezto/pull/1603
This commit is contained in:
Randall Leeds 2020-09-09 05:45:34 -07:00 committed by GitHub
parent cbb83cbc31
commit 3667f94538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ if [[ $FOUND_PYENV -ne 1 ]]; then
fi fi
if [[ $FOUND_PYENV -eq 1 ]]; then if [[ $FOUND_PYENV -eq 1 ]]; then
eval "$(pyenv init - zsh)" eval "$(pyenv init - --no-rehash zsh)"
if (( $+commands[pyenv-virtualenv-init] )); then if (( $+commands[pyenv-virtualenv-init] )); then
eval "$(pyenv virtualenv-init - zsh)" eval "$(pyenv virtualenv-init - zsh)"
fi fi