New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable prompt update in activate script #5
Comments
I created a patch that implements this: https://bitbucket.org/dcreager/virtualenv/changeset/bcc84d4f18f9/
|
|
If this issue was resolved, how does one get this functionality in virtualenv?
|
Joseph: Looks like it. I spent the time to grok the source and it's in there: if [ -z "$VIRTUAL_ENV_DISABLE_PROMPT" ] ; then So, it will only muck around with your $PS1 if $VIRTUAL_ENV_DISABLE_PROMPT is
|
I like the idea of updating the bash prompt to include the name of the current environment when you run an activate script. But I've got my own nice, colorized prompt, so I'd like to customize how the virtualenv environment name gets added to the prompt.
It seems like the easiest solution would be to add a new environment variable — such as
VIRTUAL_ENV_DISABLE_PROMPT
— and not do thePS2
magic when this variable is set. That way, my existing prompt definition can check for the existence ofVIRTUAL_ENV
, and include that as necessary.The text was updated successfully, but these errors were encountered: