Update pyenv init line in README.md

This commit is contained in:
CIARANA 2017-09-09 00:39:02 +09:00 committed by GitHub
parent 839c9e5c76
commit f6384fe8d4

View file

@ -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 Please make sure `eval "$(pyenv init -)"` is placed toward the end of the shell
configuration file since it manipulates `PATH` during the initialization. configuration file since it manipulates `PATH` during the initialization.
```sh ```sh
$ echo '[[ -x $PYENV_ROOT/bin/pyenv ]] && eval "$($PYENV_ROOT/bin/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`. **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
**Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`. **Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.