From: Frank Terbeck Date: Sun, 31 May 2009 15:58:10 +0000 (+0200) Subject: zshrc: Do not discard the output of compinit X-Git-Tag: v0.3.73~18 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=dbb49d444f52afd54c0a5b11705a769a0f801e32;hp=23c7c4da79c3253ea5f7bfcb6c55937f9866973d;p=grml-etc-core.git 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. --- 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 { }