zsh sources /etc/zsh/zprofile by default. /etc/profile (and hence
/etc/profile.d/) is only sourced in zsh's compatibility mode, i.e. when
zsh is called as sh or ksh. At least Debian does not provide such
symlinks and does not plan to do so in the future. (In contrary, Debian
deliberately stopped being advertised as ksh alternative. And it never
was advertised as /bin/sh alternative as the compatibility is not good
enough for that, and also not meant to be good enough by upstream.)

Zsh in Debian has not (yet) implemented something like e.g.
/etc/zsh/zprofile.d/ or so. So there's currently no way to add zprofile
snippets via other packages. (Zsh in Debian though supports per-package
vendor functions and completions.)

So from my point of view the only way to solve this issue from the zsh
side is to provide a means for other packages to add snippets to
zprofile. Once that's done, snapd needs to add an according snippet for
zsh, too.

As a workaround, zsh users should update their $PATH manually in either
/etc/zsh/zprofile (exists, only comments) or (as far as I can see)
~/.zprofile.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1637220

Title:
  zsh has no /snap/bin in PATH

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1637220/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to