From 0efd996228d309461dc93e70ca561264d835be4c Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Fri, 28 Apr 2023 02:37:12 +0800 Subject: [PATCH] pipenv shell: support xonsh (#5667) xonsh supports virtualenv with a plugin. So if pipenv creates a virtualenv in xonsh, it would have a bin/activate.xsh. This change uses that script in 'pipenv shell'. --- pipenv/shells.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipenv/shells.py b/pipenv/shells.py index 02065e70..447fffdf 100644 --- a/pipenv/shells.py +++ b/pipenv/shells.py @@ -44,6 +44,9 @@ def _get_activate_script(cmd, venv): elif "csh" in cmd: suffix = ".csh" command = "source" + elif "xonsh" in cmd: + suffix = ".xsh" + command = "source" elif "nu" in cmd: suffix = ".nu" command = "overlay use"