mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user