From 6522f86f373f1d35dd5746210452a0625471b1e5 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 21 Mar 2012 10:07:36 -0700 Subject: [PATCH] Make git branch yellow and change indicator red --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index e71821d..b1eeba4 100644 --- a/zshrc +++ b/zshrc @@ -62,10 +62,10 @@ precmd_git_rprompt() fi branch=`echo $gstat | sed -n -e '2,$d' \ -e 's/.*\ \([^\ ^:\\*?\[]*\)$/\1/p'` - RPROMPT="$branch" + RPROMPT="%F{yellow}$branch%f" echo $gstat | grep '^nothing' 1>/dev/null 2>&1 if [[ $? != 0 ]]; then - RPROMPT="%B%F{green}*%f%b$RPROMPT" + RPROMPT="%B%F{red}*%f%b$RPROMPT" fi }