mirror of
https://github.com/pyenv/pyenv.git
synced 2025-04-10 21:05:07 +00:00
Merge pull request #977 from cia-rana/update-readme-pyenv-init
Update `pyenv init` line in README.md
This commit is contained in:
commit
48aa0c491b
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ easy to fork and contribute any changes back upstream.
|
|||
Please make sure `eval "$(pyenv init -)"` is placed toward the end of the shell
|
||||
configuration file since it manipulates `PATH` during the initialization.
|
||||
```sh
|
||||
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
|
||||
$ 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`.
|
||||
**Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
|
||||
|
|
Loading…
Add table
Reference in a new issue