mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 13:44:12 +01:00
Install zsh completion file
According to the Debian zsh maintainer Clint Adams, this is the first time that a package installs its own completer into zsh. Part of the reason this is not usually done is because zsh does not provide a stable API. We agreed to try it, given that notmuch is expected to change quite a bit initially. If there are problems or the completer goes stable, we'll move it into the upstream zsh repository. Signed-off-by: martin f. krafft <madduck@debian.org>
This commit is contained in:
parent
c340c1bd11
commit
1ef33800df
2 changed files with 6 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -8,6 +8,7 @@ EMACS ?= emacs
|
||||||
gzip = gzip
|
gzip = gzip
|
||||||
|
|
||||||
bash_completion_dir = /etc/bash_completion.d
|
bash_completion_dir = /etc/bash_completion.d
|
||||||
|
zsh_completion_dir = /usr/share/zsh/functions/Completion/Unix
|
||||||
|
|
||||||
all_deps = Makefile Makefile.local Makefile.config \
|
all_deps = Makefile Makefile.local Makefile.config \
|
||||||
lib/Makefile lib/Makefile.local
|
lib/Makefile lib/Makefile.local
|
||||||
|
|
|
@ -48,5 +48,10 @@ install-bash:
|
||||||
install -m0644 contrib/notmuch-completion.bash \
|
install -m0644 contrib/notmuch-completion.bash \
|
||||||
$(DESTDIR)$(bash_completion_dir)/notmuch
|
$(DESTDIR)$(bash_completion_dir)/notmuch
|
||||||
|
|
||||||
|
install-zsh:
|
||||||
|
install -d $(DESTDIR)$(zsh_completion_dir)
|
||||||
|
install -m0644 contrib/notmuch-completion.zsh \
|
||||||
|
$(DESTDIR)$(zsh_completion_dir)/notmuch
|
||||||
|
|
||||||
SRCS := $(SRCS) $(notmuch_client_srcs)
|
SRCS := $(SRCS) $(notmuch_client_srcs)
|
||||||
CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz
|
CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz
|
||||||
|
|
Loading…
Reference in a new issue