Pipenv is a relatively new packaging tool that encompasses "Pipfile, Pip, and Virtualenv". I have made changes to simplify my PS1 in .bashrc
but now find that I need my PS1 to tell me when I am using my virtualenv.
Current PS1:
PS1='\w $ '
From the below, you can see my prompt script does nothing to tell me about whether I'm using a virtual environment:
~ $ cd workspace/myproject/
~/workspace/myproject $ pipenv shell
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
~/workspace/marcus_project $
I too often screw up my PS1
and was hoping for a simple fix to have the prompt in the virtualenv show up like so: (my-env) ~ $
.