summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 10:48:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 10:48:31 +0000
commitca670d4d27953588909d4b682eae5d7757bcf512 (patch)
tree0d08d04ad83287c0bd7371570da541ae77841b60 /Doc/Zsh
parent781a5bd4b1ac91e18bd58470030fac8f15d6a432 (diff)
downloadzsh-ca670d4d27953588909d4b682eae5d7757bcf512.tar.gz
zsh-ca670d4d27953588909d4b682eae5d7757bcf512.tar.xz
zsh-ca670d4d27953588909d4b682eae5d7757bcf512.zip
allow _main_complete to call an arbitrary command given as arguments (11459)
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 1638e5406..ddd815c4a 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -2003,6 +2003,12 @@ functions to decide if other completers should be called.  If the return
 value is zero, no other completers are tried and the tt(_main_complete)
 function returns.
 
+If the first argument to tt(_main_complete) is a single hyphen, the
+arguments will not be taken as names of completers. Instead, the
+second argument gives a name to use in the var(completer) field of the 
+context and the other arguments give a command anme and arguments to
+call to generate the matches.
+
 The following completer functions are contained in the distribution (users
 may write their own):