diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py index 8d81fde353d..a6ba480740d 100644 --- a/src/poetry/utils/shell.py +++ b/src/poetry/utils/shell.py @@ -103,6 +103,8 @@ def _get_activate_script(self) -> str: suffix = ".fish" elif self._name in ("csh", "tcsh"): suffix = ".csh" + elif self._name == "pwsh": + suffix = ".ps1" else: suffix = ""