From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17604 invoked by alias); 27 Jul 2013 00:21:48 -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: 31588 Received: (qmail 12354 invoked from network); 27 Jul 2013 00:21:32 -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, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: William Giokas <1007380@gmail.com> Cc: zsh-workers@zsh.org Subject: Re: [wgiokas@WST420: Re: Correct installation path for completion files] In-Reply-To: <20130726184101.GE6421@WST420> (William Giokas's message of "Fri, 26 Jul 2013 13:41:01 -0500") References: <20130726180739.GD6421@WST420> <87d2q5goz9.fsf@ft.bewatermyfriend.org> <20130726184101.GE6421@WST420> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Sat, 27 Jul 2013 02:10:02 +0200 Message-ID: <874nbghnhh.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]MzQ5NTM4 William Giokas wrote: > On Fri, Jul 26, 2013 at 08:23:06PM +0200, Frank Terbeck wrote: [...] >> It's hard to make it distribution-agnostic. The best way I can think of >> is to use the output of this as the destination directory: >> >> zsh -fc 'print ${fpath[1]}' >> > > If vendor-functions is something special that distributions use, then > they can specify that when they package this stuff. site-functions seems > to be the default for zsh, so it seems that it should be the default for > packages that install zsh completion. The `vendor-*' directories debian uses are indeed *only* relevant for *debian* packages. They are inside /usr/share, where you shouldn't put non-package stuff on debian anyway. Since we're not talking specifically about debian-packages, we can ignore those and look at other possibilities, of which the `site-functions' directory seems like the best fit. The problem is, that the location of `site-functions' is not a fixed value. It's a compile-time option. The default is /usr/local/share/zsh/site-functions, but some vendors use /usr/share/zsh/site-functions/, like you mentioned yourself in <20130726170749.GA6421@WST420>. But unless someone screws with $fpath in the global zshenv file, the command I mentioned should return the site-functions location the system's specific zsh binary was compiled with. Putting additional function files in there will work fine. Regards, Frank