Open offbyone opened 13 years ago
What would be the expected behaviour?
PS: If this disturbs you in any way, you can disable virtualenv's prompt by setting VIRTUAL_ENV_DISABLE_PROMPT. (http://virtualenv.openplans.org/#activate-script)
I would expect the virtualenv to prefix the prompt; probably something like this:
(D) offline@VOID.LOCAL ~> . venv/bin/activate
(venv) (D) offline@VOID.LOCAL ~> deactivate
(D) offline@VOID.LOCAL ~>
@lvv I propose to only set PS1 when it has not been changed manually (check in prompt_command_function()). unset'ting it enables git-prompt again.
What do you think?
Coreranger's fork have commits to support virtualenv. I am about to merge it. But I can't test it. Can someone try it if it works?
I can confirm that it works as expected (quite nice).
Ian Bicking's virtualenv project amends the prompt when you select a virtualenv. git-prompt erases or blocks this content:
old::
git-prompt::