From 8dab5bc03726168356f76c708919ed011adbaf95 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 26 Jan 2020 03:35:22 +0000 Subject: 45344: Document where third-party completion functions should be installed. --- ChangeLog | 5 +++++ INSTALL | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4b6955b67..f15cfbe56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-01-29 Daniel Shahaf + + * 45344: INSTALL: Document where third-party completion functions + should be installed. + 2020-01-28 Daniel Shahaf * 45345: Util/ztst-syntax.vim: internal: ztst.vim: Fix diff --git a/INSTALL b/INSTALL index cf70893a7..f347a4480 100644 --- a/INSTALL +++ b/INSTALL @@ -251,6 +251,16 @@ source code in the directory that "configure" is in. For example, Note that this is mutually exclusive with using the source directories as make can become confused by build files created in the source directories. +Writing third-party autoloadable functions +------------------------------------------ + +Third-party autoloadable functions, including but not limited to completion +functions, should be installed into the share/zsh/site-functions/ directory +under the respective installation prefix. That would typically be written as +$(DESTDIR)$(PREFIX)/share/zsh/site-functions/ in a makefile. If the +third-party tool's $(PREFIX) is not the same as zsh's prefix, then that +directory should be added to $fpath in zsh's initialization files. + ================================ AUTOMATIC NEW USER CONFIGURATION -- cgit 1.4.1