Remove ‘tail’ from list of _gnu_generic commands
authorFrank Terbeck <ft@grml.org>
Tue, 17 Mar 2015 21:31:20 +0000 (22:31 +0100)
committerFrank Terbeck <ft@grml.org>
Tue, 17 Mar 2015 21:31:20 +0000 (22:31 +0100)
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.

etc/zsh/zshrc

index f38e2fd..4ad12c6 100644 (file)
@@ -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