terminal prompt doesn't show you're in the venv
See original GitHub issueI’m on OS X Sierra running pipenv 3.5.2. Everything seems to work correctly. But when dropping into shell:pipenv shell
I get Launching subshell in virtual environment...
However the terminal prompt doesn’t change to show I’m in the virtual environment - looks like my normal terminal prompt. Examples I see in the doc, look like the prompt should change as it does in virtualenvironment. Is there a configuration setting I’m missing? Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
bash - Why is virtualenv not setting my terminal prompt?
My mistake - it looks like I have a git-aware prompt which is overwriting the prompt depending on the directory / repo status....
Read more >PowerShell prompt doesn't show virtualenv : PY-22469
There's a workaround for this issue. Under Settings > Tools > Terminal you can uncheck the Activate virtualenv option and then set the...
Read more >Can't see python virtual environment name in bash prompt ...
When it is active, I mean after exec bash , if I create a virtual environment with virtualenv venv and subsequently activate it...
Read more >How To Set Up a Virtual Python Environment (Windows)
Now that we have a virtual environment, we need to activate it. .\venv\Scripts\activate. After you activate the environment, your command prompt will be ......
Read more >How to customize the bash prompt in a way that doesn't ...
As a (bad) workaround, you can define bash functions that set and unset prefix for PS1 , and call these when you activate/deactivate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If that doesn’t work,
pipenv shell -c
should fix your issue. This appears to be a dupe of a conflict we’ve previously found withpew
.Thanks for the quick response and great work on
pipenv
!