From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16693 invoked by alias); 13 Oct 2016 09:21:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39624 Received: (qmail 752 invoked from network); 13 Oct 2016 09:21:16 -0000 X-Qmail-Scanner-Diagnostics: from nm19-vm4.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.96.237):SA:0(0.0/5.0):. Processed in 0.174056 secs); 13 Oct 2016 09:21:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.mail.yahoo.com designates 212.82.96.237 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1476350111; bh=4Vua7E+tTJ/ntHDDLUJbowifxWAwVBMOzus+yBjT3W0=; h=From:To:Subject:Date:From:Subject; b=PmzbCdBsGNOlTBnmQ2yYyvGOsVfYzT4y0boiMbUBVf8c03IFslYORQ4QGubXYNIMUdPeEpEi/x2/SycBjQoiO0Sxmqg4Wwtb6GKHjjKnPO6AFTLGfUKacuJAZi/bfB3MPEnAYaezGvUKYy1BmeupsOtAgScyhPSgA6Ag465oIg3Wq9z1W7nmamjG+HbeMl4/DRdSXHJ03WC40PhWO7LpuOZUZNIzkyZmYkI78wOKnry7UKGgmOqYRrrpKEO+O59eOYK5sc5pl3fXX1UyG5RpHjqyKYDF3c/owL7OXTIjqYZEDrcuOje8ghDubNky3diTnfMomlcJKPxin4tqSS6tvg== X-Yahoo-Newman-Id: 778291.10057.bm@smtp130.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8m8Tu8cVM1nmypauIOUUaF5h3Qmx4qzTbq.3Qhpf9PFoSBN ZzzmqcQDGyQSSq5dnsxJqN5DyoiTm8gZjGeKTG7xXMCjSow4VZIiC5v2uY4w LM3PXGWqNb9ByPUdkCBkZMe9ztA_hMJ159WpHi6rPBbHt.8AhiMjrjtwJv0L bikIhbJkasZPorPph_w5CmAGOBzOkpvPEuruDQ1fLGkTOcqR6tLdlMJi20Ea i2EZLxBwNqFPZCETlcq92zRIsWf1XUcn5iZ4ARungwLChmPz_3iL5RpFKLW0 1LEqwkS78gHvpRhRl0JEU5HslyZ9M39ehfdL.YigpOcp0L4ILQtqCNl9WmQH 3Sx3EcIlCAePEoKoQYrchgyb6qkXqmt2ea4kea.CTOpBfPaFYyqlmitp3Opa cC86v422pdEfeH3nA8qg7uUXuSjonw2WG.scwAbuBisV9Dz.niJxfGTytcm9 lAwiOMHciR8qwnaFiGBdWiHct8InSd0AD5.iO923yYAfqC3OIKl7CvCXwtpQ cjNZMdIjXL.FY80GGIGcQD90ufmKfw9KMpEmqSld6Di0- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: PATCH: fix yafc completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8931.1476350111.1@hydra.kiddle.eu> Date: Thu, 13 Oct 2016 11:15:11 +0200 Message-ID: <8932.1476350111@hydra.kiddle.eu> A spurious space before compdef prevents the yafc completion from being picked up. Aside from that, this just tweaks a few minor things. Oliver diff --git a/Completion/Unix/Command/_yafc b/Completion/Unix/Command/_yafc index df9623b..edc7c41 100644 --- a/Completion/Unix/Command/_yafc +++ b/Completion/Unix/Command/_yafc @@ -1,28 +1,28 @@ -# compdef yafc +#compdef yafc _yafc() { - local arguments - arguments=( + local arguments + arguments=( '(--anon -a)'{--anon,-a}'[try an anonymous login]' '(--debug -d)'{--debug,-d}'[print all messages to/from server]' '(--dump-rc -D)'{--dump-rc,-D}'[print the default configuration file]' - '(--mechanism -m)'{--mechanism=-,-m}'[specify a security mechanism]:security mechanism:(krb4, krb5, none)' - '(--norc -n)'{--norc,-n}'[do not read the users configuration file]' - '(--noproxy -p)'{--noproxy,-p}'[do not connect via the proxy]' - '(--quiet -q)'{--quiet,-q}'[do not print the welcome message]' + '(--mechanism -m)'{--mechanism=-,-m}'[specify a security mechanism]:security mechanism:(krb4 krb5 none)' + '(--norc -n)'{--norc,-n}"[don't read the users configuration file]" + '(--noproxy -p)'{--noproxy,-p}"[don't connect via the proxy]" + '(--quiet -q)'{--quiet,-q}"[don't print the welcome message]" '(--rcfile -r)'{--rcfile=-,-r}'[specify a configuration file]:configuration file:_files' '(--trace -t)'{--trace=-,-t-}'[specify a trace file]:trace file:_files' - '(--noauto -u)'{--noauto,-u}'[do not login automagically]' + '(--noauto -u)'{--noauto,-u}"[don't login automatically]" '(--noalias -U)'{--noalias,-U}'[as --noauto, but bookmark aliases is disabled]' '(--verbose -v)'{--verbose,-v}'[print all responses received]' - '(--wait -w)'{--wait,-w=}'[specify a waiting time between connection attempts]:wait time: ' + '(--wait -w)'{--wait,-w=}'[specify a waiting time between connection attempts]:wait time (seconds)' '(--workdir -W)'{--workdir=,-W+}'[use a different working directory]:working directory:_directories' - '(--version -V)'{--version,-V}'[print version information]' - '(--help -h)'{--help,-h}'[print a short help description]' + '(- *)'{--version,-V}'[print version information]' + '(- *)'{--help,-h}'[print a short help description]' '*:address:_yafc_address' - ) + ) - _arguments -S -s $arguments + _arguments -S -s $arguments } (( $+functions[_yafc_bookmarks] )) ||