Skip to content

pip env shell, launches the wrong shell.  #5478

@dopry

Description

@dopry

Issue description

When I launch pipenv shell, it opens a different shell than the one I am running. I use windows and typically use either powershell or bash, with a strong preference for bash with my python projects. When I run pipenv shell it launchs cmd.exe. I've tried setting PYENV_SHELL_EXPLICIT, but that doesn't work.

Expected result

I expect that if a new subshell to be the same shell I'm currently running or the shell in PYENV_SHELL_EXPLICIT. It might be nice to have a pipenv activate/deactivate instead. I don't usually launch a new shell just to load my virtual environments. seem like a bit of overkill.

Actual result

It launches cmd.exe

Steps to replicate

launch git bash or powershell
cd to a folder with a pipfile
pipenv shell

voila, you're in cmd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.OS: WindowsThis issue affects the Windows Operating System.Windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions