summaryrefslogtreecommitdiff
path: root/01_Internal.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-27 10:26:09 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-27 10:26:09 +0200
commit966f82cb0d4560cad7f18a4cbd0eb742a40d025a (patch)
treeb98e77a465efbb2f4ba1943029d223afce426f3a /01_Internal.zsh
parent752e1697e3111cf61fbd964020f651c6571d9e1b (diff)
[Git] new ffwd-able color + blinking stash..
Diffstat (limited to '01_Internal.zsh')
-rw-r--r--01_Internal.zsh8
1 files changed, 7 insertions, 1 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index 21d109d..74afa9f 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -217,10 +217,11 @@ __get_git_branch ()
then
local _stashed=$(git stash list | wc -l )
[ "$_stashed" -gt 0 ] && my_git_branch+=$C_$_prompt_colors[soft_generic]$_C
- [ "$_stashed" -gt 0 ] && for i in {1..$_stashed}
+ [ "$_stashed" -gt 0 ] && for i in {2..$_stashed}
do
my_git_branch+="·"
done
+ my_git_branch+="$C_$color[blink];$_prompt_colors[soft_generic]$_C·"
fi
echo $my_git_branch
@@ -309,6 +310,11 @@ __get_git_status ()
fi
fi
+ if [ $(git status | sed -n '2{/can be fast-forwarded/p};3q' | wc -l) -gt 0 ]
+ then
+ my_git_status+=";$_gcl_colors[ffwd]"
+ fi
+
if [ $(git ls-files --unmerged | wc -l) -gt 0 ]
then
my_git_status="${_gcl_colors[merging]:+$_gcl_colors[merging];}$my_git_status"