Skip to content

Adapt Windows cmd prompt in pipenv launched shell #1036

@dalito

Description

@dalito

The standard command prompt in windows (cmd.exe) does not indicate whether I am in an pipenv-shell or not.

  1. OS Type: Win 10
  2. Python version: 2.7.14
  3. Pipenv version: 8.3.2
c:\dev_src\_pyve>cd dev_py2
c:\dev_src\_pyve\dev_py2>pipenv shell
Launching subshell in virtual environment. Type 'exit' to return.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
c:\dev_src\_pyve\dev_py2>exit
c:\dev_src\_pyve\dev_py2>

Here "dev_py2" was a pipenv-created environment with the pipfile(s).

It would be nice if pipenv could show the name of the active virtual env in the prompt like virtualenv does:

(dev_py2) c:\dev_src\_pyve\dev_py2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions