Skip to content

Commit

Permalink
Fix shell detection
Browse files Browse the repository at this point in the history
  • Loading branch information
oz123 committed Sep 1, 2024
1 parent b99ea6b commit cddd699
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ def _get_activate_script(cmd, venv):
does not work elsewhere anyway.
"""
# Suffix and source command for various shells.
if cmd.endswith("/sh", "/bash", "/zsh"):
if cmd.endswith(("sh", "bash", "zsh")):
suffix = ""
command = "."
elif cmd.endswith("/fish"):
elif cmd.endswith("fish"):
suffix = ".fish"
command = "source"
elif cmd.endswith("/csh"):
elif cmd.endswith("csh"):
suffix = ".csh"
command = "source"
elif cmd.endswith("/xonsh"):
elif cmd.endswith("xonsh"):
suffix = ".xsh"
command = "source"
elif cmd.endswith("/nu"):
elif cmd.endswith("nu"):
suffix = ".nu"
command = "overlay use"
else:
Expand Down

0 comments on commit cddd699

Please sign in to comment.