From: Sergey Matveev <stargrave@stargrave.org>
Date: Thu, 23 Jun 2022 18:02:23 +0000 (+0300)
Subject: Ability to temporary disable vcs_info
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=28dfc8987d9846b34bc3ed9fbf682b70d69db9d3;p=dotfiles.git

Ability to temporary disable vcs_info

As it works badly with bare repositories on NFS.
---

diff --git a/zsh/.zsh/rc/015prompt.zsh b/zsh/.zsh/rc/015prompt.zsh
index 9a6219a..abd2502 100644
--- a/zsh/.zsh/rc/015prompt.zsh
+++ b/zsh/.zsh/rc/015prompt.zsh
@@ -36,5 +36,5 @@ preexec() {
 
 precmd() {
     printf "\a\e]2;\e\\"
-    vcs_info
+    [[ -n "$NO_VCS_INFO" ]] || vcs_info
 }