]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Ability to temporary disable vcs_info
authorSergey Matveev <stargrave@stargrave.org>
Thu, 23 Jun 2022 18:02:23 +0000 (21:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 23 Jun 2022 18:02:24 +0000 (21:02 +0300)
As it works badly with bare repositories on NFS.

zsh/.zsh/rc/015prompt.zsh

index 9a6219ac2396cdc9e7160f3c8e3e4f5c62fb8185..abd25029b242806f692185b508cba7673a86cd11 100644 (file)
@@ -36,5 +36,5 @@ preexec() {
 
 precmd() {
     printf "\a\e]2;\e\\"
 
 precmd() {
     printf "\a\e]2;\e\\"
-    vcs_info
+    [[ -n "$NO_VCS_INFO" ]] || vcs_info
 }
 }