diff options
| author | Vincent Breitmoser <look@my.amazin.horse> | 2018-09-18 13:19:23 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-10-02 21:04:26 -0300 |
| commit | 07eac4af32ab1b955fcf3405dcf14b0f01af8702 (patch) | |
| tree | 3f0fb59af22507754ad3230deba407b01f882c35 /completion/Makefile.local | |
| parent | e8cb6b2cd63c9ea8a011cb9f672baf04b4c14f7b (diff) | |
completion: more complete completion for zsh.
This adds completion files for zsh that cover most of notmuch's cli.
The files in completion/zsh are formatted so that they can be found by
zsh's completion system if put $fpath. They are also registered to the
notmuch-* pattern, so they can be called externally using _dispatch.
Update installation recipe and drop debian/notmuch.examples to avoid
breakage. This means zsh completion is not installed for debian, to be
fixed in a future commit.
Amended by db: use regexp searching for address completion. This seems
to be fast enough to work without a cache.
Diffstat (limited to 'completion/Makefile.local')
| -rw-r--r-- | completion/Makefile.local | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/completion/Makefile.local b/completion/Makefile.local index dfc12713..8e86c9d2 100644 --- a/completion/Makefile.local +++ b/completion/Makefile.local @@ -6,7 +6,7 @@ dir := completion # directly in any shell commands. Instead we save its value in other, # private variables that we can use in the commands. bash_script := $(srcdir)/$(dir)/notmuch-completion.bash -zsh_script := $(srcdir)/$(dir)/notmuch-completion.zsh +zsh_scripts := $(srcdir)/$(dir)/zsh/_notmuch $(srcdir)/$(dir)/zsh/_email-notmuch install: install-$(dir) @@ -18,5 +18,5 @@ ifeq ($(WITH_BASH),1) endif ifeq ($(WITH_ZSH),1) mkdir -p "$(DESTDIR)$(zsh_completion_dir)" - install -m0644 $(zsh_script) "$(DESTDIR)$(zsh_completion_dir)/_notmuch" + install -m0644 $(zsh_scripts) "$(DESTDIR)$(zsh_completion_dir)" endif |
