mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-14 15:49:09 +00:00
python: Update pyenv initialization flow per pyenv 2.0
In pyenv 2.0 onwards, it is not enough anymore to initialize pyenv in shell by just calling `pyenv init -`. We also need to update `path` to include pyenv shims by calling `pyenv init --path`. Also, honor `$PYENV_ROOT` if set but, no need to set it explicitly if not set. Instead, let the initialization script take care of that.
This commit is contained in:
committed by
Indrajit Raychaudhuri
parent
f0942e6dda
commit
afe59b293b
@@ -38,7 +38,9 @@ execution of `pyenv`.
|
||||
Install Python versions with `pyenv install` into _`~/.pyenv/versions`_.
|
||||
|
||||
This will be loaded automatically if pyenv is installed to `$PYENV_ROOT`,
|
||||
_`~/.pyenv`_, or if the `pyenv` command is on the path.
|
||||
_`~/.pyenv`_, or if the `pyenv` command is on the path. By default, `PYENV_ROOT`
|
||||
is set to _`$HOME/.pyenv`_. You can set it to an alternate location and export
|
||||
it in [_`${ZDOTDIR:-$HOME}/.zshenv`_][6].
|
||||
|
||||
## Local Package Installation
|
||||
|
||||
|
Reference in New Issue
Block a user