Permalink
Browse files

alter prompt to reflect exit status

  • Loading branch information...
1 parent 6e93385 commit d8cf521b05e14496d99b240c8088ee54817ddea6 @mattly committed Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 zsh/60_prompt.zsh
View
@@ -64,9 +64,9 @@ git_prompt() {
printf " %s" $s
fi
}
-# %B%n@%m%b
+
setopt prompt_subst
PROMPT=$'
-%n@%m:%3~$(git_prompt) > '
+%n@%m:%3~$(git_prompt) %(?.%{$fg[green]%}\:\).%{$fg[red]%}\:\(%?)%{$reset_color%} '

0 comments on commit d8cf521

Please sign in to comment.