summaryrefslogtreecommitdiff
path: root/01_Internal.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-27 10:31:00 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-27 10:31:00 +0200
commit44ef72305430c7b2b97f7b8f903be7dbdbe6311b (patch)
tree0e2cfb088e3a22dfb36023c91da364910b2091a5 /01_Internal.zsh
parent92a198adc4a3d4ca3c82a12b14890ad49f15b27a (diff)
[Git] corrects 966f82cb0: stashing.
Diffstat (limited to '01_Internal.zsh')
-rw-r--r--01_Internal.zsh16
1 files changed, 10 insertions, 6 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index 74afa9f..fa4fd2e 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -216,12 +216,16 @@ __get_git_branch ()
if [ "$(git rev-parse --is-inside-git-dir)" != "true" -a "$(git config --get core.bare)" != "true" ]
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 {2..$_stashed}
- do
- my_git_branch+="·"
- done
- my_git_branch+="$C_$color[blink];$_prompt_colors[soft_generic]$_C·"
+ if [ "$_stashed" -gt 0 ]
+ then
+ my_git_branch+=$C_$_prompt_colors[soft_generic]$_C
+ while [ $i -gt 1 ]
+ do
+ my_git_branch+="·"
+ i=$(( $i - 1 ))
+ done
+ my_git_branch+="$C_$color[blink];$_prompt_colors[soft_generic]$_C·"
+ fi
fi
echo $my_git_branch