New bug for zsh-completion.

This commit is contained in:
eschwartz@5abb721e66990e478c7d1caf96beb4f9794eb168 2019-08-15 18:09:47 +00:00 committed by admin
parent 708fc6567f
commit 5e5d0e54ca

View file

@ -0,0 +1,19 @@
### Please describe the problem.
Installing git-annex via the Makefile results in a zsh completion installed to `$(PREFIX)/$(SHAREDIR)/zsh/vendor-completions`
This is not used by zsh, since the builtin zsh fpath is `$(PREFIX)/$(SHAREDIR)/zsh/site-functions` -- as a result, zsh completions do not work.
Some system distributions of zsh may change the builtin fpath, in which case git-annex may have working zsh completions out of the box -- I believe the current installation method is designed based on Debian's preferred layout.
### What steps will reproduce the problem?
Install git-annex on a non-Debian system
### What version of git-annex are you using? On what operating system?
version 7.20190730 on an Arch Linux system.
### Recommended fix
Make the installation directory configurable. Use /etc/os-release to check if the system is a Debian-based system, and if so, continue to use vendor-completions, if not, use site-functions.