Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/poetry/console/commands/env/activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _get_activate_command(self, env: Env) -> str:
command, filename = "source", "activate.fish"
elif shell == "nu":
command, filename = "overlay use", "activate.nu"
elif shell == "csh":
elif shell in ["csh", "tcsh"]:
command, filename = "source", "activate.csh"
elif shell in ["powershell", "pwsh"]:
command, filename = ".", "Activate.ps1"
Expand Down
1 change: 1 addition & 0 deletions tests/console/commands/env/test_activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def tester(command_tester_factory: CommandTesterFactory) -> CommandTester:
("fish", "source", ".fish"),
("nu", "overlay use", ".nu"),
("csh", "source", ".csh"),
("tcsh", "source", ".csh"),
),
)
@pytest.mark.skipif(WINDOWS, reason="Only Unix shells")
Expand Down