aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 65f2b9a..9a44536 100644
--- a/.zshrc
+++ b/.zshrc
@@ -282,7 +282,9 @@ zstyle ':vcs_info:git+set-message:*' hooks git-stash-count
function +vi-git-stash-count() {
local stash="$(git stash list 2>/dev/null | wc -l | tr -d ' ')"
if [[ "${stash}" -gt 0 ]]; then
- hook_com[misc]+=" [${stash}]"
+ hook_com[misc]=" [${stash}]"
+ else
+ hook_com[misc]=""
fi
}