summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-10-14 11:39:14 +0200
committerOliver Kiddle <opk@zsh.org>2016-10-14 11:39:14 +0200
commit87965e5e02d7799f8e277b397c95d50aebd2efb5 (patch)
tree89aa8a9feea3cd84734263251f144bbd7a0133ce
parent17f9d6b5217355384f5d2faa2e09629766058ebb (diff)
downloadzsh-87965e5e02d7799f8e277b397c95d50aebd2efb5.tar.gz
zsh-87965e5e02d7799f8e277b397c95d50aebd2efb5.zip
39624: remove space before compdef that prevents yafc completion function being used plus other tweaks
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_yafc26
2 files changed, 16 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 791a69d19..97d3bc097 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2016-10-13 Oliver Kiddle <opk@zsh.org>
+ * 39624: Completion/Unix/Command/_yafc: remove space before
+ compdef that prevents function being used plus other tweaks
+
* 39623: Completion/X/Command/_evince: new completion
2016-10-13 Peter Stephenson <p.stephenson@samsung.com>
diff --git a/Completion/Unix/Command/_yafc b/Completion/Unix/Command/_yafc
index df9623beb..edc7c417f 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] )) ||