views:

60

answers:

1

I would like the change my zsh prompt style for every virtualenv instances that i use or create.

My actual promp is like this:

declare PS1="%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}%3~ %{$reset_color%}"

When i activate a virtualenv it just add some an information before the prompt:

(the name of my venv)my_prompt

Do you know a way to change this (colors or styles)??

+2  A: 

If you use virtualenvwrapper you can use its hooks to do this.

Ian Bicking
oh that was just i need needed : thanks a lot!!
Jérôme Pigeot