zsh-completions icon indicating copy to clipboard operation
zsh-completions copied to clipboard

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

Open cperciva opened this issue 2 years ago • 4 comments

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?

cperciva avatar Feb 12 '22 20:02 cperciva

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.

syohex avatar Feb 13 '22 01:02 syohex

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.

cperciva avatar Feb 13 '22 07:02 cperciva

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)

syohex avatar Feb 13 '22 09:02 syohex

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.

cperciva avatar Feb 13 '22 18:02 cperciva