summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-01-26 03:35:22 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-01-29 09:02:34 +0000
commit8dab5bc03726168356f76c708919ed011adbaf95 (patch)
tree48438324f866f7222e1e83fa56e9fb4a627072af /INSTALL
parent45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload (diff)
downloadzsh-8dab5bc03726168356f76c708919ed011adbaf95.tar
zsh-8dab5bc03726168356f76c708919ed011adbaf95.tar.gz
zsh-8dab5bc03726168356f76c708919ed011adbaf95.tar.bz2
zsh-8dab5bc03726168356f76c708919ed011adbaf95.tar.lz
zsh-8dab5bc03726168356f76c708919ed011adbaf95.tar.xz
zsh-8dab5bc03726168356f76c708919ed011adbaf95.tar.zst
zsh-8dab5bc03726168356f76c708919ed011adbaf95.zip
45344: Document where third-party completion functions should be installed.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL10
1 files changed, 10 insertions, 0 deletions
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