zshrc: Disable vcs_info for restricted shells
authorFrank Terbeck <ft@grml.org>
Thu, 21 Oct 2010 08:46:33 +0000 (10:46 +0200)
committerFrank Terbeck <ft@grml.org>
Thu, 21 Oct 2010 08:46:33 +0000 (10:46 +0200)
debian/changelog
etc/zsh/zshrc

index b29f61d..acfd08c 100644 (file)
@@ -5,6 +5,7 @@ grml-etc-core (0.3.84) UNRELEASED; urgency=low
   * zshrc: Fixied a bug in whatwhen(); found be Joerg Woelke.
   * zshrc: Added a note about modifying the zshrc file when it is
     used as ~/.zshrc
+  * zshrc: Disable `vcs_info' in restricted shells.
   * grmlzshrc.t2t: Remove references to git-get-*().
 
   [ Carsten Hey ]
@@ -25,7 +26,7 @@ grml-etc-core (0.3.84) UNRELEASED; urgency=low
   * zshrc: Remove get{air,gizmo,skype,skypebeta,xlite} functions.
   * vimrc: Enable "persistent undo" if possible.
 
- -- Frank Terbeck <ft@grml.org>  Mon, 27 Sep 2010 22:00:25 +0200
+ -- Frank Terbeck <ft@grml.org>  Thu, 21 Oct 2010 10:43:38 +0200
 
 grml-etc-core (0.3.83) unstable; urgency=low
 
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 {{{