From 952f57b23b19e09a71168adfbc476f46fe144439 Mon Sep 17 00:00:00 2001 From: hellerve Date: Mon, 6 Apr 2015 20:19:59 +0200 Subject: [PATCH] Added color to git rprompt --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 2ba7067..dc489d2 100644 --- a/zshrc +++ b/zshrc @@ -111,9 +111,9 @@ function rprompt-git-current-branch { action=`VCS_INFO_git_getaction "$gitdir"` && action="($action)" st=`git status 2> /dev/null` - if [[ -n `echo "$st" | grep "ahead of"`]]; then + if [[ -n `echo "$st" | grep "ahead of"` ]]; then color=%F{white} - elif[[ -n `echo "$st" | grep "^nothing to"` ]]; then + elif [[ -n `echo "$st" | grep "^nothing to"` ]]; then color=%F{green} elif [[ -n `echo "$st" | grep "^no changes added"` ]]; then color=%F{yellow}