Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [wgiokas@WST420: Re: Correct installation path for completion files]
- X-seq: zsh-workers 31588
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: William Giokas <1007380@xxxxxxxxx>
- Subject: Re: [wgiokas@WST420: Re: Correct installation path for completion files]
- Date: Sat, 27 Jul 2013 02:10:02 +0200
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20130726184101.GE6421@WST420> (William Giokas's message of "Fri, 26 Jul 2013 13:41:01 -0500")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20130726180739.GD6421@WST420> <87d2q5goz9.fsf@ft.bewatermyfriend.org> <20130726184101.GE6421@WST420>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author