mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-10 15:46:17 -04:00
Add instructions for PowerShell in README.md
This commit is contained in:
parent
1180862662
commit
c8773f4d75
10
README.md
10
README.md
|
|
@ -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
|
||||
----
|
||||
|
|
|
|||
Loading…
Reference in a new issue