From dbb49d444f52afd54c0a5b11705a769a0f801e32 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 31 May 2009 17:58:10 +0200 Subject: [PATCH] zshrc: Do not discard the output of compinit When it calls compaudit, that can cause legitimate output, which is important because it requires user interaction. Not printing such output can make it seem like zsh is hanging forever. --- debian/changelog | 7 +++++++ etc/zsh/zshrc | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 70d2e61..5132056 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.3.73) UNRELEASED; urgency=low + + * zshrc: Fix a problem when calling compinit can seem to cause zsh startup + to hang forever. Reported by Rasmus Steinke. + + -- Frank Terbeck Sun, 31 May 2009 17:53:28 +0200 + grml-etc-core (0.3.72) unstable; urgency=low * zshrc: Clarify how the context of the styles for directory based diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index d142ef0..a204513 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -865,8 +865,8 @@ alias run-help >&/dev/null && unalias run-help zrcautoload run-help # use via 'esc-h' # completion system -if zrcautoload compinit && compinit 2>/dev/null ; then - compinit 2>/dev/null || print 'Notice: no compinit available :(' +if zrcautoload compinit ; then + compinit || print 'Notice: no compinit available :(' else print 'Notice: no compinit available :(' function zstyle { } -- 2.1.4