mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add instructions for PowerShell in README.md
This commit is contained in:
parent
2df60ca4ea
commit
2ac251faa1
1 changed files with 10 additions and 0 deletions
10
README.md
10
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
|
||||
|
|
Loading…
Reference in a new issue