From 36f4ee7bc0ff6e683142f6f7c6596ecf57ad8353 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 7 Nov 2021 12:02:46 +0900 Subject: .zshrc: hide miscellaneous info in VCS info --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v1.3-1-g0d28