浏览代码

Actually show return code on failure

Tom Kirchner 13 年之前
父节点
当前提交
cb2362c006
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/tjkirch.zsh-theme

+ 1 - 1
themes/tjkirch.zsh-theme

@@ -7,7 +7,7 @@ function prompt_char {
 	if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
 }
 
-PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
+PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
 )
 %{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
 %_ $(prompt_char) '