Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion collision, best way to fix
Bart wrote:
> If you're going to do that, the correct way is to use _pick_variant
> (Completion/Base/Utility/_pick_variant) to decide which flavor of "pkg"
> you have. That way people can use zstyle to control the choice.
_pick_variant distinquishes the program variants by running them,
usually with an option such as --help. The Solaris pkg seems to take
over a second even when doing 'pkg version' so in this case, I would
simply put a test in using $OSTYPE.
The only other name clash I'm aware of is nc (netcat or nedit client). In
that case _netcat uses _pick_variant and calls _nedit.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author