Skip to content

Comments

Add "pwsh" to shell.py#5047

Closed
kkthxbye wants to merge 1 commit intopython-poetry:masterfrom
kkthxbye:master
Closed

Add "pwsh" to shell.py#5047
kkthxbye wants to merge 1 commit intopython-poetry:masterfrom
kkthxbye:master

Conversation

@kkthxbye
Copy link

@kkthxbye kkthxbye commented Jan 16, 2022

Allow poetry shell to properly activate a python virtual environment when the user shell is pwsh

poetry shell on pwsh (https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pwsh) uses the default incompatible /bin/activate, which means you have to hack your way around with something like

. $($(poetry debug | sls Path).ToString().Trim() | % { $($_ -split '\s+', 0, 'regexmatch')[1] + '/bin/activate.ps1' })

instead.

Allow `poetry shell` to properly activate a python virtual environment when the user's shell is `pwsh`
@kkthxbye
Copy link
Author

Resolved in #5053

@kkthxbye kkthxbye closed this Jan 22, 2022
@github-actions
Copy link

github-actions bot commented Mar 3, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant