From: Frank Terbeck Date: Thu, 21 Oct 2010 08:46:33 +0000 (+0200) Subject: zshrc: Disable vcs_info for restricted shells X-Git-Tag: v0.3.84~10 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=5a4a6475f13b245722d2076b0ecf1e2bfad92c62 zshrc: Disable vcs_info for restricted shells --- 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 {{{