Sorry, the way I asked the question was not clear.
I want to included zsh and fish completions to my snaps. I can include bash completions by using completer keyword in my snapcraft.yaml. When will I be able to include zsh and fish completions as well?
At the moment only bash is supported, but since there is demand, it’s worth researching the topic a bit more. I have some idea about putting things at the right place for zsh, but I have no clue about fish. Would appreciate any input there.
fish completion files typically have the name <app>.fish and are normally stored in the directory /usr/share/fish/completions.
zsh completion files, typically have the name _<app> and are normally stored in the directory /usr/share/zsh/vendor-completions on Debian-like distributions. RedHat-like distributions use /usr/share/zsh/functions. The leading underscore in the filename is important: without it zsh will not automatically add the completion.
Thanks for the response. The question was about shell completions for installed snaps, not shell completion for snap itself. For example, if I install package foo with snap install foo, will it also install zsh and fish completions for foo?