aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-07 12:02:46 +0900
committernsfisis <nsfisis@gmail.com>2021-11-07 12:02:46 +0900
commit36f4ee7bc0ff6e683142f6f7c6596ecf57ad8353 (patch)
tree6182eb2163d9d5c585ddf85aacf0d8385a0d0154
parent0947ca93fd00101ad635a229431b8b2d56f45977 (diff)
downloaddotfiles-36f4ee7bc0ff6e683142f6f7c6596ecf57ad8353.tar.gz
dotfiles-36f4ee7bc0ff6e683142f6f7c6596ecf57ad8353.tar.zst
dotfiles-36f4ee7bc0ff6e683142f6f7c6596ecf57ad8353.zip
.zshrc: hide miscellaneous info in VCS info
-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
}