Add instructions for PowerShell in README.md

This commit is contained in:
Florian Blanchet 2023-07-28 22:32:36 +03:00 committed by Ivan Pozdeev
parent 1180862662
commit c8773f4d75
No known key found for this signature in database
GPG key ID: FB6A628DCF06DCD7

View file

@ -271,6 +271,16 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
</details>
- 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
~~~
### C. Restart your shell
----