#1093843 zsh: fpath is missing /usr/share/zsh/site-functions

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Chow Loong Jin
Date:
2025-09-18 19:41:01 UTC
Severity:
normal
#1093843#5
Date:
2025-01-23 11:32:30 UTC
From:
To:
Dear Maintainer,

There are a number of packages that install zsh completions into
/usr/share/zsh/site-functions, but this directory is missing from $fpath
in a fully stock zsh setup.

For reference, $fpath contains /usr/local/share/zsh/site-functions, but
not /usr/share/zsh/site-functions. I see that this change appears to
have been intentional (judging by a changelog entry[1] from 2001), but
I think either zsh should look in this directory by default, or there
needs to be a MBF for packages to move these completion files elsewhere.

[1] https://salsa.debian.org/debian/zsh/-/blob/841bce705a58b04220b1f257abcc00ae71cbdbdc/debian/changelog?page=5#L4230

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#1093843#10
Date:
2025-09-18 19:38:54 UTC
From:
To:
Hi,

I submitted MR !11 for review to add /usr/share/zsh/site-functions into
$fpath, here:
https://salsa.debian.org/debian/zsh/-/merge_requests/11

As several maintainers don't have salsa MR notifications on, commenting
here with a link.