]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zsh/rc/015prompt.zsh
Ability to temporary disable vcs_info
[dotfiles.git] / zsh / .zsh / rc / 015prompt.zsh
index 95fcae9a84c21077235add007d4d412fdd0b7c83..abd25029b242806f692185b508cba7673a86cd11 100644 (file)
@@ -9,7 +9,7 @@ PROMPT+="%(1j.%j.)%b"
 PROMPT+='%U${vcs_info_msg_0_}%u'
 PROMPT+="%(?.. %S%?%s)"
 PROMPT+='%(1S. %B${SECONDS}%b.)'
-PROMPT+='%B%F{magenta}%#%f%b '
+PROMPT+='%B%F{magenta}%#%f%b '
 
 function zle-line-init zle-keymap-select {
     local ccolour=red
@@ -36,5 +36,5 @@ preexec() {
 
 precmd() {
     printf "\a\e]2;\e\\"
-    vcs_info
+    [[ -n "$NO_VCS_INFO" ]] || vcs_info
 }