Modify zshrc instead of zshenv

https://github.com/pyenv/pyenv/issues/1400#issuecomment-551371058

Closes #846, #1400, #1447, #1449
This commit is contained in:
Josh Friend 2020-01-10 12:59:25 -05:00
parent ce0be04ad4
commit 4500a33c73
No known key found for this signature in database
GPG key ID: 3D61CC32D87F9CAF

View file

@ -196,7 +196,7 @@ easy to fork and contribute any changes back upstream.
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
```
- **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
- **Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
- **Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
- **Proxy note**: If you use a proxy, export `http_proxy` and `HTTPS_PROXY` too.
@ -206,7 +206,7 @@ easy to fork and contribute any changes back upstream.
```sh
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
```
- **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
- **Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
- **fish note**: Use `pyenv init - | source` instead of `eval (pyenv init -)`.
- **Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.