mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 14:23:53 -05:00
Add explicit instructions for Zsh in MacOS
Indirect ones with errata have proven to confuse users. Fixes #1947, #1948
This commit is contained in:
16
README.md
16
README.md
@@ -263,6 +263,22 @@ easy to fork and contribute any changes back upstream.
|
|||||||
|
|
||||||
- For **Zsh**:
|
- For **Zsh**:
|
||||||
|
|
||||||
|
- **MacOS, if Pyenv is installed with Homebrew:**
|
||||||
|
|
||||||
|
~~~ zsh
|
||||||
|
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
|
||||||
|
~~~
|
||||||
|
|
||||||
|
- **MacOS, if Pyenv is installed with a Git checkout:**
|
||||||
|
|
||||||
|
~~~ zsh
|
||||||
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zprofile
|
||||||
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zprofile
|
||||||
|
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
|
||||||
|
~~~
|
||||||
|
|
||||||
|
- **Other OSes:**
|
||||||
|
|
||||||
Same as for Bash above, but add the commands into both `~/.profile`
|
Same as for Bash above, but add the commands into both `~/.profile`
|
||||||
and `~/.zprofile`.
|
and `~/.zprofile`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user