zsh-users / zsh-completions

Additional completion definitions for Zsh.
Other
6.97k stars 714 forks source link

should tarsnap's zsh completion script be here or there? #845

Open cperciva opened 2 years ago

cperciva commented 2 years ago

Tarsnap now ships with a zsh completion script, and we now have tooling to make sure that it stays up to date with new options. Is there any reason to have a completion script for tarsnap here, or should we remove it from here and only ship it with tarsnap?

syohex commented 2 years ago

Is there any reason to have a completion script for tarsnap here

Because zsh-completions had it before tarsnap supports

I suppose it should be removed in the future. However it looks packages, like deb package, homebrew package etc, have not contained the zsh completion file yet. So some people may have problems if we remove tarsnap completion file from zsh-completions. I suppose if those packages contains the zsh completion file as well as bash completion file, then it can be removed from here.

cperciva commented 2 years ago

Well... there's a chicken-and-egg problem here. I'd like to enable zsh completion in the FreeBSD tarsnap package... but I can't as long as the zsh-completion package has a tarsnap zsh completion script, because otherwise the two packages will conflict.

syohex commented 2 years ago

Do you have any package(deb, homebrew etc) updating plans that make those tarsnap packages contain the zsh completion file ? If so, we'll remove _tarsnap from here(#846)

cperciva commented 2 years ago

On second thought, maybe I should talk to the maintainer of the FreeBSD zsh-completion package and just have them omit this file from installation there... that way we could keep it here until new packages are available everywhere.