summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01_Functions.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index bf47b72..81671c9 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -71,6 +71,12 @@ check_git_status ()
COLOR_GIT=$COLOR_BRANCH_OR_REV
fi
+ # Here we are on a .git folder..
+ if ( echo ${(s:/:)PWD} | grep "\.\<git\>" >/dev/null )
+ then
+ COLOR_GIT="$BOLD;$RED"
+ fi
+
fi
else
GITBRANCH=""