mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -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:
parent
e2125b2750
commit
159327ff25
1 changed files with 18 additions and 2 deletions
20
README.md
20
README.md
|
@ -263,8 +263,24 @@ easy to fork and contribute any changes back upstream.
|
||||||
|
|
||||||
- For **Zsh**:
|
- For **Zsh**:
|
||||||
|
|
||||||
Same as for Bash above, but add the commands into both `~/.profile`
|
- **MacOS, if Pyenv is installed with Homebrew:**
|
||||||
and `~/.zprofile`.
|
|
||||||
|
~~~ 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`
|
||||||
|
and `~/.zprofile`.
|
||||||
|
|
||||||
- For **Fish shell**:
|
- For **Fish shell**:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue