Skip to content

Commit 3a8ac3f

Browse files
guysaltradoering
authored andcommitted
utils/shell: add support for vox in xonsh shell
1 parent 5571d81 commit 3a8ac3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/poetry/utils/shell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def activate(self, env: VirtualEnv) -> int | None:
108108
if self._name == "zsh":
109109
# Under ZSH the source command should be invoked in zsh's bash emulator
110110
c.sendline(f"emulate bash -c '. {shlex.quote(str(activate_path))}'")
111+
elif self._name == "xonsh":
112+
c.sendline(f"vox activate {shlex.quote(str(env.path))}")
111113
else:
112114
cmd = f"{self._get_source_command()} {shlex.quote(str(activate_path))}"
113115
if self._name in ["fish", "nu"]:

0 commit comments

Comments
 (0)