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

Re: [wgiokas@WST420: Re: Correct installation path for completion files]



William Giokas wrote:
[...]
> I should have made this clearer: I am looking for a generic place to use
> in a distro-agnostic Makefile, not a specfile, PKGBUILD or ebuild. Would
> it be sane to have the default be $datadir/zsh/site-functions, and allow
> Debian and the select few other distros use a ./configure flag to place
> this somewhere else?

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]}'

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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