Re: Include XDG_DATA_DIRS/share/zsh/site-functions in FPATH by default?

Lawrence Velázquez <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>
On Thu, Jun 26, 2025, at 6:23 PM, Jade Lovelace wrote:
> This is superfluous in bash which uses XDG_DATA_DIRS by default:
> https://github.com/scop/bash-completion/blob/51b009f6a653c66454816e9bc869c40f61329764/README.md?plain=1#L362-L372
> and 
> https://github.com/scop/bash-completion/blob/51b009f6a653c66454816e9bc869c40f61329764/bash_completion#L3306-L3309.

No, bash does not use XDG.  The "bash-completion" project is
a third-party effort that is not affiliated with the GNU bash
project.

> I am wondering if zsh has considered doing this by default as well, as
> it makes zsh integrate cleanly with other tooling that uses
> XDG_DATA_DIRS without specially needing to consider adding zsh
> specific code to handle FPATH.

This is not about fpath, but it is representative of the developers'
general position on XDG support.

https://www.zsh.org/mla/workers/2024/msg00012.html

-- 
vq
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.