Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "pwsh" to shell.py #5047

Closed
wants to merge 1 commit into from
Closed

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
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