unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] configure: Install zsh completions where zsh will find them.
       [not found] <82391-1573769450.250999.ref@S1ti.PxtT.zCh8>
@ 2019-11-14 22:10 ` Oliver Kiddle
  2019-12-03 23:13   ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kiddle @ 2019-11-14 22:10 UTC (permalink / raw)
  To: notmuch

Zsh searches in the $fpath array for completion functions. By default
this includes $(prefix)/share/zsh/site-functions but not the existing
value. The prefix for zsh and notmuch isn't guaranteed to be the same
but it normally will be making this a better default for
zsh_completion_dir.
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 3c148e12..9768d4a3 100755
--- a/configure
+++ b/configure
@@ -168,7 +168,7 @@ Fine tuning of some installation directories is available:
 	--emacslispdir=DIR	Emacs code [PREFIX/share/emacs/site-lisp]
 	--emacsetcdir=DIR	Emacs miscellaneous files [PREFIX/share/emacs/site-lisp]
 	--bashcompletiondir=DIR Bash completions files [PREFIX/share/bash-completion/completions]
-	--zshcompletiondir=DIR	Zsh completions files [PREFIX/share/zsh/functions/Completion/Unix]
+	--zshcompletiondir=DIR	Zsh completions files [PREFIX/share/zsh/site-functions]
 
 Some features can be disabled (--with-feature=no is equivalent to
 --without-feature) :
@@ -1206,7 +1206,7 @@ desktop_dir = \$(prefix)/share/applications
 bash_completion_dir = ${BASHCOMPLETIONDIR:=\$(prefix)/share/bash-completion/completions}
 
 # The directory to which zsh completions files should be installed
-zsh_completion_dir = ${ZSHCOMLETIONDIR:=\$(prefix)/share/zsh/functions/Completion/Unix}
+zsh_completion_dir = ${ZSHCOMLETIONDIR:=\$(prefix)/share/zsh/site-functions}
 
 # Whether the canonicalize_file_name function is available (if not, then notmuch will
 # build its own version)
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure: Install zsh completions where zsh will find them.
  2019-11-14 22:10 ` [PATCH] configure: Install zsh completions where zsh will find them Oliver Kiddle
@ 2019-12-03 23:13   ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2019-12-03 23:13 UTC (permalink / raw)
  To: Oliver Kiddle, notmuch

Oliver Kiddle <okiddle@yahoo.co.uk> writes:

> Zsh searches in the $fpath array for completion functions. By default
> this includes $(prefix)/share/zsh/site-functions but not the existing
> value. The prefix for zsh and notmuch isn't guaranteed to be the same
> but it normally will be making this a better default for
> zsh_completion_dir.

Merged to git master.

thanks,

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-03 23:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <82391-1573769450.250999.ref@S1ti.PxtT.zCh8>
2019-11-14 22:10 ` [PATCH] configure: Install zsh completions where zsh will find them Oliver Kiddle
2019-12-03 23:13   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).