Makefile: Changed default zsh completion location to zsh default fpath.

Systems such as Debian that have overridden the default fpath will need to
set ZSH_COMPLETIONS_PATH.

I feel that Debian is causing unncessary complexity by making this change,
and have filed a bug report about it.

This also means that when git-annex is installed with PREFIX=/usr/local
it will use /usr/local/share/zsh/site-functions which works with probably
all versions of zsh.
This commit is contained in:
Joey Hess 2019-08-16 14:08:56 -04:00
parent 5fcaaf77db
commit 7f97575941
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 13 additions and 2 deletions

2
debian/rules vendored
View file

@ -11,6 +11,8 @@ STANDALONE_BUILD=$(shell grep -qe '^Package: git-annex-standalone' debian/contro
# Do use the changelog's version number, rather than making one up.
export RELEASE_BUILD=1
export ZSH_COMPLETIONS_PATH=/usr/share/zsh/vendor-completions
%:
dh $@