From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28952 invoked from network); 15 Jul 2023 01:53:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Jul 2023 01:53:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=cDfH6s7WT8RItJospVAzgbyU8/tktJ+ZW968SxQ4v6w=; b=TkN7lBXzYdW96nRjql2erlED53 rwxPtcnwDpBHRotUy/oeONoICtTeVVX/qT709WWlGDfkJbG3+46lTbOBXl+fNk7ZaNXBxH5YHQ6nj hh4pv6lXIR64RHcXYufn+dudmJ+LcgJMjuiF64K9Rbzw62Q09eGgZOA1qymb87uaxLZg111rkSq5r f50Eh6hJzfnSzDdVOziMnS35WzImchHDazYZ2djfQgBbDVTlNjJaphuSbbsEtUrfz+kfvUOzB1cA2 y10RK80f4jDxOupfVJ+NZi1iw5rtKq1TLGDHRsWklLOVHlmJpdtN0MI5GxLSp+foGVrFXIkqobJ6Y Yf4wlTjg==; Received: by zero.zsh.org with local id 1qKUTJ-000HMF-Pz; Sat, 15 Jul 2023 01:53:21 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qKUSd-000H1c-RH; Sat, 15 Jul 2023 01:52:40 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1qKUSZ-0007ul-IT; Sat, 15 Jul 2023 03:52:35 +0200 cc: zsh-workers@zsh.org In-reply-to: <2k4aom63gjwye7qltsgrmihalb4dwilbqnzxffck32segn66pr@5a2zhmh4qhzn> From: Oliver Kiddle References: <2k4aom63gjwye7qltsgrmihalb4dwilbqnzxffck32segn66pr@5a2zhmh4qhzn> To: Wu Zhenyu Subject: Re: [feature] Provide a pkg-config file MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30425.1689385954.1@hydra> Date: Sat, 15 Jul 2023 03:52:34 +0200 Message-ID: <30426-1689385954.869850@Ch1l.hz71.QZ_I> X-Seq: 51934 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 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