From 159327ff2572d763e9553987f26b4abf0f7a19f8 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 2 Jun 2021 00:04:26 +0300 Subject: [PATCH 1/2] Add explicit instructions for Zsh in MacOS Indirect ones with errata have proven to confuse users. Fixes #1947, #1948 --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca98f84d..bbfd1044 100644 --- a/README.md +++ b/README.md @@ -263,8 +263,24 @@ easy to fork and contribute any changes back upstream. - For **Zsh**: - Same as for Bash above, but add the commands into both `~/.profile` - and `~/.zprofile`. + - **MacOS, if Pyenv is installed with Homebrew:** + + ~~~ 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**: From cb1390cb492095adb164b84575543825e1779d68 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 2 Jun 2021 00:47:52 +0300 Subject: [PATCH 2/2] Fix capitalization --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbfd1044..e0ba8605 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ easy to fork and contribute any changes back upstream. 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. - - For **bash**: + - For **Bash**: ~~~ bash echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile