[URL theme] Display exit status when previous command failed

This commit is contained in:
Raving Genius 2012-04-01 20:16:08 -04:00
commit 4ff1fa5875

View file

@ -1,5 +1,6 @@
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}?%{$reset_color%}%{$fg_bold[red]%}git%{$reset_color%}%{$fg_bold[yellow]%}=%{$reset_color%}%{$fg_bold[magenta]%}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}?%{$reset_color%}%{$fg_bold[red]%}git%{$reset_color%}%{$fg_bold[yellow]%}=%{$reset_color%}%{$fg_bold[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}%{$fg_bold[yellow]%}@%{$reset_color%}%{$fg_bold[green]%}%M%{$reset_color%}%{$fg_bold[blue]%}%d%{$reset_color%}$(git_prompt_info) PROMPT='%(0?..%{$fg_bold[yellow]%}[%{$reset_color%}%{$fg_bold[red]%}%?%{$reset_color%}%{$fg_bold[yellow]%}]%{$reset_color%}
)%{$fg_bold[green]%}%n%{$reset_color%}%{$fg_bold[yellow]%}@%{$reset_color%}%{$fg_bold[green]%}%M%{$reset_color%}%{$fg_bold[blue]%}%d%{$reset_color%}$(git_prompt_info)
%{$fg_bold[yellow]%}%#%{$reset_color%} ' %{$fg_bold[yellow]%}%#%{$reset_color%} '