Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Include XDG_DATA_DIRS/share/zsh/site-functions in FPATH by default?
- X-seq: zsh-users 30289
- From: Jade Lovelace <jadel@xxxxxxxxxxx>
- To: Lawrence Velázquez <larryv@xxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Include XDG_DATA_DIRS/share/zsh/site-functions in FPATH by default?
- Date: Thu, 26 Jun 2025 16:52:47 -0700
- Archived-at: <https://zsh.org/users/30289>
- In-reply-to: <CAC_G=DYgOUf2g0orH-qgNYAOhxz=MPf0V4ucg1zNR179jY8MGQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAC_G=Dabvii56rFAsTJZ3gjj9qakV_fojGwf26wO3mGVwg3owQ@mail.gmail.com> <c20af646-d3e5-40aa-b5fa-751c63954eeb@app.fastmail.com> <CAC_G=DYgOUf2g0orH-qgNYAOhxz=MPf0V4ucg1zNR179jY8MGQ@mail.gmail.com>
The cleanest solution *by far* is if zsh were to, by default, load
completions from XDG_DATA_DIRS whenever XDG_DATA_DIRS changes (or at
rehash time), which would then Just Work(tm).
Some more digging reveals that someone's written a zsh plugin for such
a thing. It being a third party plugin is quite suboptimal as it means
that zsh doesn't have this work by default and thus the majority of
people who aren't fiddling extensively with their setup won't have it
work for them.
https://github.com/BronzeDeer/zsh-completion-sync
I don't know if anyone has talked about this whole situation on the
mailing list yet but I wanted to make sure that it was raised as an
issue affecting (relatively large numbers of the
less-customization-oriented) people who are using zsh in practice.
Regards,
Jade
Messages sorted by:
Reverse Date,
Date,
Thread,
Author