summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01_Internal.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index 1e91763..0194ef4 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -202,6 +202,13 @@ __get_git_branch ()
[ ! "$checkouted_branch" ] && my_git_branch="($my_git_branch)"
fi
+ # Show number of stashed commits by appending '+' signs for each
+ local _stashed=$(git stash list | wc -l )
+ [ "$_stashed" -gt 0 ] && for i in {1..$_stashed}
+ do
+ my_git_branch+="+"
+ done
+
echo " "$my_git_branch
}