summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Leeds <randall@bleeds.info>2020-09-09 05:45:34 -0700
committerGitHub <noreply@github.com>2020-09-09 14:45:34 +0200
commit3667f94538c24ebaa9abd46e797a2610f3b67c5e (patch)
tree82e0e260f8b2670823e6547d084758c2023822fa
parentcbb83cbc31af922330af2508276c1adbec391860 (diff)
downloadzsh-3667f94538c24ebaa9abd46e797a2610f3b67c5e.tar.gz
zsh-3667f94538c24ebaa9abd46e797a2610f3b67c5e.tar.bz2
zsh-3667f94538c24ebaa9abd46e797a2610f3b67c5e.zip
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
-rw-r--r--plugins/pyenv/pyenv.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
index b7ae2046f..82ba6ff8c 100644
--- a/plugins/pyenv/pyenv.plugin.zsh
+++ b/plugins/pyenv/pyenv.plugin.zsh
@@ -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