Browse code

Actually show return code on failure

Tom Kirchner authored on 15/03/2011 at 00:43:22
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@ function prompt_char {
7 7
 	if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
8 8
 }
9 9
 
10
-PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
10
+PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
11 11
 )
12 12
 %{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
13 13
 %_ $(prompt_char) '