From 5a4a6475f13b245722d2076b0ecf1e2bfad92c62 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Thu, 21 Oct 2010 10:46:33 +0200 Subject: [PATCH] zshrc: Disable vcs_info for restricted shells --- debian/changelog | 3 ++- etc/zsh/zshrc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b29f61d..acfd08c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 27 Sep 2010 22:00:25 +0200 + -- Frank Terbeck Thu, 21 Oct 2010 10:43:38 +0200 grml-etc-core (0.3.83) unstable; urgency=low diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7d63e64..83dc68b 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 {{{ -- 2.1.4