Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix yafc completion
- X-seq: zsh-workers 39624
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: fix yafc completion
- Date: Thu, 13 Oct 2016 11:15:11 +0200
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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] )) ||
Messages sorted by:
Reverse Date,
Date,
Thread,
Author