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

Re: Completion collision, best way to fix



On Sep 29,  3:39am, Baptiste Daroussin wrote:
}
} What we could do is to provide a Unix/_pkg
} Which will do the #compdef pkg and call _pkg5 on Solaris and _pkgng on
} FreeBSD?

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.

} While you are here will you accept FreeBSD specific completion for
} _zfs ? :D like the jail/unjail subcommand

Have to wait for PWS to chime in, but generally speaking you can just
send it to zsh-workers for review ... of all the reasons it might be
rejected, being FreeBSD-specific is pretty far down the list.



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