From fb42f33c02dbdd32f3e73fd4aef78252fbb34d0a Mon Sep 17 00:00:00 2001 From: Joe Bloggs Date: Tue, 25 Mar 2014 23:24:55 +0000 Subject: [PATCH] update --- zsh-completions-howto.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index f75de94..793c90d 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -144,9 +144,10 @@ _alternative 'args:custom args:(a b c)' 'interfaces:network interfaces:_net_inte The first specification adds completion candidates a, b & c with description 'custom args', and the second specification calls the _net_interfaces command which adds network interfaces as completion candidates. -We could add descriptions to each of the custom args like this: +We could split the specifications over several lines and add descriptions to each of the custom args like this: #+BEGIN_SRC sh -_alternative 'args:custom args:((a\:"description a" b\:"description b" c\:"description c"))' 'interfaces:network interfaces:_net_interfaces' +_alternative 'args:custom args:((a\:"description a" b\:"description b" c\:"description c"))'\ + 'interfaces:network interfaces:_net_interfaces' #+END_SRC ** Writing completion functions using _arguments