From: Frank Terbeck Date: Tue, 17 Mar 2015 21:31:20 +0000 (+0100) Subject: Remove ‘tail’ from list of _gnu_generic commands X-Git-Tag: v0.11.1~2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=1049e383c183bce753a1f11fdc05ddd0a3f1942e;hp=f88badc74fc25dc204a05e9cb95297688e9ccac0 Remove ‘tail’ from list of _gnu_generic commands Turns out, that _gnu_generic doesn't handle GNU tail's --help output all that well. If someone wants completion for tail, send a specialised _tail function to zsh's development list. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780531 as well. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index f38e2fd..4ad12c6 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -786,7 +786,7 @@ grmlcomp() { # use generic completion system for programs not yet defined; (_gnu_generic works # with commands that provide a --help option with "standard" gnu-like output.) for compcom in cp deborphan df feh fetchipac gpasswd head hnb ipacsum mv \ - pal stow tail uname ; do + pal stow uname ; do [[ -z ${_comps[$compcom]} ]] && compdef _gnu_generic ${compcom} done; unset compcom