diff options
author | Joe <joespicola@gmail.com> | 2023-05-15 09:27:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 15:27:31 +0200 |
commit | 7a030f6bd6c15259052c7007020cf3ecf8a3f299 (patch) | |
tree | 94225d97ff61700d1c1b1195bc39e4a9d3e54bf4 | |
parent | f01eea76da194fef6005f53a281b6f5a998db126 (diff) | |
download | zsh-7a030f6bd6c15259052c7007020cf3ecf8a3f299.tar.gz zsh-7a030f6bd6c15259052c7007020cf3ecf8a3f299.tar.bz2 zsh-7a030f6bd6c15259052c7007020cf3ecf8a3f299.zip |
docs(pyenv): warn about pyenv init (#11692)
-rw-r--r-- | plugins/pyenv/README.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/pyenv/README.md b/plugins/pyenv/README.md index b9ee937b7..f1ca3d288 100644 --- a/plugins/pyenv/README.md +++ b/plugins/pyenv/README.md @@ -10,6 +10,14 @@ To use it, add `pyenv` to the plugins array in your zshrc file: 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 - `ZSH_PYENV_QUIET`: if set to `true`, the plugin will not print any messages if it |