diff --git a/news/5470.feature.rst b/news/5470.feature.rst new file mode 100644 index 0000000000..6b3a152ee6 --- /dev/null +++ b/news/5470.feature.rst @@ -0,0 +1 @@ +Find nushell activate scripts. diff --git a/pipenv/shells.py b/pipenv/shells.py index e4965ebf52..1c16a8d259 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 "nu" in cmd: + suffix = ".nu" + command = "source" else: suffix = "" command = "."