From 6fde93200f3d57eb3b36d36553b860b3d085713b Mon Sep 17 00:00:00 2001 From: Joe Bloggs Date: Mon, 24 Mar 2014 04:19:08 +0000 Subject: [PATCH] update --- zsh-completions-howto.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index b0effd8..39823d9 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -49,8 +49,12 @@ A good way to get started is to look at some already defined completion function On my linux installation these are found in /usr/share/zsh/functions/Completion/Unix and /usr/share/zsh/functions/Completion/Linux and a few other subdirs. -You will notice that the _arguments function is used a lot. This is a utility function that makes -it easy to write simple completion functions. +You will notice that the _arguments function is used a lot in these files. +This is a utility function that makes it easy to write simple completion functions. +The _arguments function is a wrapper around the compadd builtin function. +The compadd builtin is the core function used to add completion words to the command line, and control its behaviour. +However, most of the time you will not need to use compadd, since there are many utility functions such as _arguments +and _values which are easier to use. * Utility functions with example code ** compadd ** _gnu_generic