Alter startup code to conform to others

[no ci]
This commit is contained in:
Ivan Pozdeev 2025-12-21 03:07:02 +03:00
parent 6f80a16053
commit 6358cbe01f
No known key found for this signature in database
GPG key ID: FB6A628DCF06DCD7
2 changed files with 4 additions and 2 deletions

View file

@ -279,7 +279,8 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
~~~ pwsh
echo '$Env:PYENV_ROOT="$Env:HOME/.pyenv"' >> $profile.CurrentUserAllHosts
echo '$Env:PATH="$Env:PYENV_ROOT/bin:$Env:PATH"' >> $profile.CurrentUserAllHosts
echo 'if (Test-Path -LP "$Env:PYENV_ROOT/bin" -PathType Container) {
$Env:PATH="$Env:PYENV_ROOT/bin:$Env:PATH" }' >> $profile.CurrentUserAllHosts
echo 'iex ((pyenv init -) -join "`n")' >> $profile.CurrentUserAllHosts
~~~

View file

@ -160,7 +160,8 @@ function help_() {
echo "# the following to $profile :"
echo
echo '$Env:PYENV_ROOT="$Env:HOME/.pyenv"'
echo '$Env:PATH="$Env:PYENV_ROOT/bin:$Env:PATH"'
echo 'if (Test-Path -LP "$Env:PYENV_ROOT/bin" -PathType Container) {'
echo ' $Env:PATH="$Env:PYENV_ROOT/bin:$Env:PATH" }'
echo 'iex ((pyenv init -) -join "`n")'
;;
* )