Skip to content

Commit 93744da

Browse files
committed
fix(env): use csh activation script for tcsh
1 parent 2ecc383 commit 93744da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/poetry/console/commands/env/activate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _get_activate_command(self, env: Env) -> str:
4444
command, filename = "source", "activate.fish"
4545
elif shell == "nu":
4646
command, filename = "overlay use", "activate.nu"
47-
elif shell == "csh":
47+
elif shell in ["csh", "tcsh"]:
4848
command, filename = "source", "activate.csh"
4949
elif shell in ["powershell", "pwsh"]:
5050
command, filename = ".", "Activate.ps1"

tests/console/commands/env/test_activate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def tester(command_tester_factory: CommandTesterFactory) -> CommandTester:
2828
("fish", "source", ".fish"),
2929
("nu", "overlay use", ".nu"),
3030
("csh", "source", ".csh"),
31+
("tcsh", "source", ".csh"),
3132
),
3233
)
3334
@pytest.mark.skipif(WINDOWS, reason="Only Unix shells")

0 commit comments

Comments
 (0)