From 26f7f7856993e5307a836ac3571a63c160f50526 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 8 Mar 2016 10:00:08 -0800 Subject: [PATCH] Add venv prompt support. --- dotfiles/zsh_custom/themes/matir.zsh-theme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/zsh_custom/themes/matir.zsh-theme b/dotfiles/zsh_custom/themes/matir.zsh-theme index c684ef6..831b132 100644 --- a/dotfiles/zsh_custom/themes/matir.zsh-theme +++ b/dotfiles/zsh_custom/themes/matir.zsh-theme @@ -1,3 +1,7 @@ -PROMPT='%{$fg[black]%}[%{$fg[yellow]%}%h%{$fg[black]%}] %{%(!.$fg[red].$fg[green])%}%8>..>%n%>>%{$fg[white]%}@%{$fg[blue]%}%12>..>%m%>>%{$fg[white]%}:%{$fg[green]%}%32<...<%~%<<%{$fg[blue]%}$(git_prompt_info)%{$fg[white]%}%#%{$reset_color%} ' +PROMPT='%{$fg[black]%}[%{$fg[yellow]%}%h%{$fg[black]%}] %{%(!.$fg[red].$fg[green])%}%8>..>%n%>>%{$fg[white]%}@%{$fg[blue]%}%12>..>%m%>>%{$fg[white]%}:%{$fg[green]%}%32<...<%~%<<%{$fg[magenta]%}$(virtualenv_prompt_info)%{$fg[blue]%}$(git_prompt_info)%{$fg[white]%}%#%{$reset_color%} ' ZSH_THEME_GIT_PROMPT_PREFIX=" (" ZSH_THEME_GIT_PROMPT_SUFFIX=")" +ZSH_THEME_VIRTUALENV_PREFIX=" (py:" +ZSH_THEME_VIRTUALENV_SUFFIX=")" + +# vim: set textwidth=0 wrapmargin=0