zshrc: Disable vcs_info for restricted shells
[grml-etc-core.git] / etc / zsh / zshrc
index 7d63e64..83dc68b 100644 (file)
@@ -1995,6 +1995,10 @@ else
     zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "%b${RED}:${YELLOW}%r"
 fi
 
+if [[ -o restricted ]]; then
+    zstyle ':vcs_info:*' enable false
+fi
+
 # }}}
 
 # command not found handling {{{