Only compdef commands to _gnu_generic if no native completion exists.
This should fix problems with _gnu_generic and output from cp of
coreutils version 7.1.
* vimrc: only set screen title if the caller explicitly asks for it.
* zshrc: ask for setting screen title in vim via a wrapper function.
+ * zshrc: only compdef commands to _gnu_generic if no native completion
+ exists.
* zshrc: add commit-to-history widget, that allows users to add
command lines to zsh's history without executing [Closes: issue407]
- -- Frank Terbeck <ft@grml.org> Fri, 03 Apr 2009 22:49:53 +0200
+ -- Frank Terbeck <ft@grml.org> Sat, 04 Apr 2009 11:35:06 +0200
grml-etc-core (0.3.65) unstable; urgency=low
# use generic completion system for programs not yet defined; (_gnu_generic works
# with commands that provide a --help option with "standard" gnu-like output.)
- compdef _gnu_generic tail head feh cp mv df stow uname ipacsum fetchipac
+ for compcom in tail head feh cp mv df stow uname ipacsum fetchipac; do
+ [[ -z ${_comps[$compcom]} ]] && compdef _gnu_generic ${compcom}
+ done; unset compcom
# see upgrade function in this file
compdef _hosts upgrade