mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 19:00:07 +00:00
3667f94538
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 |
||
---|---|---|
.. | ||
pyenv.plugin.zsh | ||
README.md |
pyenv
This plugin looks for pyenv, a Simple Python version management system, and loads it if it's found. It also loads pyenv-virtualenv, a pyenv plugin to manage virtualenv, if it's found.
To use it, add pyenv
to the plugins array in your zshrc file:
plugins=(... pyenv)
Functions
pyenv_prompt_info
: displays the Python version in use by pyenv; or the global Python version, if pyenv wasn't found.