From 2ac251faa19508c7ae4efce2984591987e1d64c1 Mon Sep 17 00:00:00 2001 From: Florian Blanchet Date: Fri, 28 Jul 2023 22:32:36 +0300 Subject: [PATCH] Add instructions for PowerShell in README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7bb47ac7..74248b63 100644 --- a/README.md +++ b/README.md @@ -352,6 +352,16 @@ See [Advanced configuration](#advanced-configuration) for details and more confi pyenv init - | source ~~~ + - For **Microsoft PowerShell**: + + Add the commands to `$profile.CurrentUserAllHosts` by running the following in your terminal: + + ~~~ pwsh + echo '$Env:PYENV_ROOT="$HOME/.pyenv"' >> $profile.CurrentUserAllHosts + echo '$Env:PATH="$Env:PYENV_ROOT/bin:$Env:PATH"' >> $profile.CurrentUserAllHosts + echo 'iex ((pyenv init -) -join "`n")' >> $profile.CurrentUserAllHosts + ~~~ + **Bash warning**: There are some systems where the `BASH_ENV` variable is configured to point to `.bashrc`. On such systems, you should almost certainly put the `eval "$(pyenv init -)"` line into `.bash_profile`, and **not** into `.bashrc`. Otherwise, you