Merge pull request #1964 from native-api/master
Add explicit Zsh instructions for MacOS
This commit is contained in:
commit
83056fc404
22
README.md
22
README.md
@ -226,7 +226,7 @@ easy to fork and contribute any changes back upstream.
|
|||||||
to add the `PYENV_ROOT=` and `PATH=` lines.
|
to add the `PYENV_ROOT=` and `PATH=` lines.
|
||||||
You also don't need to add commands into `~/.profile` if your shell doesn't use it.
|
You also don't need to add commands into `~/.profile` if your shell doesn't use it.
|
||||||
|
|
||||||
- For **bash**:
|
- For **Bash**:
|
||||||
|
|
||||||
~~~ bash
|
~~~ bash
|
||||||
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
|
||||||
@ -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…
x
Reference in New Issue
Block a user