Skip to content

Commit

Permalink
pipenv shell: support xonsh (#5667)
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
jinliu authored Apr 27, 2023
1 parent adf586c commit 0efd996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0efd996

Please sign in to comment.