zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: Wu Zhenyu <wuzhenyu@ustc.edu>
Cc: zsh-workers@zsh.org
Subject: Re: [feature] Provide a pkg-config file
Date: Sat, 15 Jul 2023 03:52:34 +0200	[thread overview]
Message-ID: <30426-1689385954.869850@Ch1l.hz71.QZ_I> (raw)
In-Reply-To: <2k4aom63gjwye7qltsgrmihalb4dwilbqnzxffck32segn66pr@5a2zhmh4qhzn>

Wu Zhenyu wrote:
> bash-completion has a pkg-config file, developers who want to provide completions can get the directory by

Developers who want to provide completions with their software should
install them below the install prefix of their software. So where their
software installs to $PREFIX/bin, $PREFIX/man, $PREFIX/lib etc, they
should drop a completion function in $PREFIX/share/zsh/site-functions

This is consistent with how things operate for other things such as man
pages, GNU info pages and even pkg-config files. The system
administrator needs to ensure that variables such as MANPATH are set
accordingly. It may be the case that this causes completion functions to
be installed in a directory that isn't in zsh's default $fpath but
that's the responsibility of the system administrator to configure.

Software dumping files outside of it's designated installation prefix is
something that should be avoided.

Oliver


  parent reply	other threads:[~2023-07-15  1:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-14 17:34 Wu Zhenyu
2023-07-14 18:08 ` Johan Grande
2023-07-15  1:52 ` Oliver Kiddle [this message]
2023-07-15 10:28   ` install paths (was: Re: [feature] Provide a pkg-config file) zeurkous

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30426-1689385954.869850@Ch1l.hz71.QZ_I \
    --to=opk@zsh.org \
    --cc=wuzhenyu@ustc.edu \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).