1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-16 02:40:08 +00:00

docs(pyenv): warn about pyenv init (#11692)

This commit is contained in:
Joe 2023-05-15 09:27:31 -04:00 committed by GitHub
parent f01eea76da
commit 7a030f6bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,14 @@ To use it, add `pyenv` to the plugins array in your zshrc file:
plugins=(... pyenv) plugins=(... pyenv)
``` ```
If you receive a `Found pyenv, but it is badly configured.` error on startup, you may need to ensure that `pyenv` is initialized before the oh-my-zsh pyenv plugin is loaded. This can be achived by adding the following earlier in the `.zshrc` file than the `plugins=(...)` line:
```zsh
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
```
## Settings ## Settings
- `ZSH_PYENV_QUIET`: if set to `true`, the plugin will not print any messages if it - `ZSH_PYENV_QUIET`: if set to `true`, the plugin will not print any messages if it