fix virtualenv's with virtualenv plugin / prompt display

Virtual Env modifies the prompt in such a way that when used with
agnoster the virtualenv will be displayed twice.

Using the virtualenv oh-my-zsh plugin disables this behavior (simply
because it disables the virtual env prompt mangling) however when using
the plugin it would be nice to keep the single prompt display as
expected, and still allow for the function to provide prompt info which
other themes may use.
This commit is contained in:
Richard Maynard 2013-11-06 13:06:22 -06:00
commit cd42812c9b
2 changed files with 6 additions and 1 deletions

View file

@ -6,3 +6,4 @@ function virtualenv_prompt_info(){
# disables prompt mangling in virtual_env/bin/activate
export VIRTUAL_ENV_DISABLE_PROMPT=1
export VIRTUAL_ENV_DISABLE_PROMPT_BY_PLUGIN=1