aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar martin f. krafft <madduck@debian.org>2010-01-09 11:49:34 +1300
committerGravatar martin f. krafft <madduck@debian.org>2010-01-14 18:12:13 +1300
commit1ef33800df7b3eaac36c0c17881e2630f7bfc0be (patch)
treece70ab7b5cf2557e1838f18e72716541df68559a
parentc340c1bd1140c0a1b7e0f24ef3ebac806f5fc3e6 (diff)
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>
-rw-r--r--Makefile1
-rw-r--r--Makefile.local5
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 021fdb82..64b9d4aa 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ EMACS ?= emacs
gzip = gzip
bash_completion_dir = /etc/bash_completion.d
+zsh_completion_dir = /usr/share/zsh/functions/Completion/Unix
all_deps = Makefile Makefile.local Makefile.config \
lib/Makefile lib/Makefile.local
diff --git a/Makefile.local b/Makefile.local
index 933ff4c7..d579242c 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -48,5 +48,10 @@ install-bash:
install -m0644 contrib/notmuch-completion.bash \
$(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)
CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz