From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8484 invoked by alias); 28 Sep 2012 15:00:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30700 Received: (qmail 21793 invoked from network); 28 Sep 2012 14:59:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120928075936.ZM28235@torch.brasslantern.com> Date: Fri, 28 Sep 2012 07:59:36 -0700 In-reply-to: Comments: In reply to Baptiste Daroussin "Completion collision, best way to fix" (Sep 28, 11:33am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh workers Subject: Re: Completion collision, best way to fix MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 28, 11:33am, Baptiste Daroussin wrote: } } I want to add the completion function to the main zsh git but I face } the problems: } The right place for it would be Completion/BSD/Command, but if I put } it there it will hide the Completion/Solaris/Command/_pkg5 has they } both define #compdef pkg } } Is there a nice way to deal with this situation? Theoretically, you ignore it and put the completion in BSD/Command/. It's not the only such conflict. The reason there are separate directories BSD/ and Solaris/ and so on is to permit the person doing the install on one of those systems to include or omit only the appropriate subset of completions -- or to permit the user to omit the irrelevant ones from $fpath, if the installer configured with --enable-function-subdirs (the default). In practice I'm not sure any of the distribution package maintainers actually take the step of removing the "irrelevant" functions from the tree; maybe some change the default fpath in /etc/zshrc or the like.