Permalink
Browse files

Make the prompt status-aware

  • Loading branch information...
Soares committed Oct 16, 2012
1 parent 086af30 commit 44dcb72bc3f50f7e6778808e5fb3dbd863f84da2
Showing with 1 addition and 0 deletions.
  1. +1 −0 themes/so8res.zsh-theme
View
@@ -2,6 +2,7 @@ function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
function prompt_char {
+ if [[ $status == '0' ]] ; then ; echo "%{$fg[red]%}" ; fi
git branch >/dev/null 2>/dev/null && echo '»' && return
hg root >/dev/null 2>/dev/null && echo '' && return
echo ''

0 comments on commit 44dcb72

Please sign in to comment.