Skip to content

Commit

Permalink
utils/shell: add support for vox in xonsh shell
Browse files Browse the repository at this point in the history
  • Loading branch information
guysalt authored and radoering committed Jul 25, 2023
1 parent 5571d81 commit 3a8ac3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/poetry/utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def activate(self, env: VirtualEnv) -> int | None:
if self._name == "zsh":
# Under ZSH the source command should be invoked in zsh's bash emulator
c.sendline(f"emulate bash -c '. {shlex.quote(str(activate_path))}'")
elif self._name == "xonsh":
c.sendline(f"vox activate {shlex.quote(str(env.path))}")
else:
cmd = f"{self._get_source_command()} {shlex.quote(str(activate_path))}"
if self._name in ["fish", "nu"]:
Expand Down

0 comments on commit 3a8ac3f

Please sign in to comment.