diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-05 14:39:55 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:22 +0100 |
commit | 38bf2f7c5d1a357234e8360baff7dfbaa4d28b59 (patch) | |
tree | 104f6d7ae107edc07873a0f0f3140498619a6720 | |
parent | a3071cd4f0258a614c34506a75781666d3b99ad3 (diff) |
Colorizes git-branch into red if we are inside a .git managment folder.
-rw-r--r-- | 01_Functions.zsh | 6 |
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="" |