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'.
This commit is contained in:
Jin Liu
2023-04-28 02:37:12 +08:00
committed by GitHub
parent adf586c837
commit 0efd996228
+3
View File
@@ -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"