Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Using the same completion function for various commands



Mikael Magnusson wrote:
> Ah, er, right. But. Is there any way to combine -p and saying foo=du ?
> When I tried compdef _du -p 'foo_*=du' nothing happened.

zstyle ':completion:*:foo_*::variant' command du --version

Peter wrote:
> Why we would ever prefer $words[1] to $service, when this seems
> to be what $service is for?

Aside from the case Bart mentioned, there's also cases like:
  compdef gdu=du

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author