My bash_profile has a few customizations for my prompt, including a few lines that show me which git branch I am on. However, when I have a virtualenv activated, it no longer shows me these customizations -- it looks like the virtualenv overrides them. Is there a local bash_profile or some other way to change the prompt configuration when a virtualenv is activated?
Asked
Active
Viewed 781 times
1 Answers
0
Actually, what is happening is that virtualenv changes your PS1 variable. All you have to do is avoid this to happen ( maybe editing the bin/activate script or using hooks )
This post seems to have a similar question: Changing the prompt style of a virtualenv instance with zsh

Community
- 1
- 1

Filipe Felisbino
- 2,712
- 25
- 26