From aa925d22b47ccca4b58fe94d512f5f04dc798654 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 6 May 2012 16:48:33 -0400 Subject: [PATCH] [Fix #170] Remove Git stash count leading spaces --- modules/git/functions/git-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info index 87f3a86b..13c1e6bc 100644 --- a/modules/git/functions/git-info +++ b/modules/git/functions/git-info @@ -268,7 +268,7 @@ function git-info { # Format stashed. if [[ -f "$(git-dir)/refs/stash" ]]; then - stashed="$(git stash list 2> /dev/null | wc -l)" + stashed="$(git stash list 2> /dev/null | wc -l | awk '{print $1}')" zstyle -s ':omz:module:git' stashed 'stashed_format' zformat -f stashed_formatted "$stashed_format" "S:$stashed" fi