summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_md5sum
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-08-28 23:16:54 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-08-29 17:32:10 +0200
commit245503929e0369e985e694684b557aef6d1432eb (patch)
tree56a50e092bf96d19d0d599615d7ce404a1d44aa7 /Completion/Unix/Command/_md5sum
parentfcb4f7956799c1e0803c0cb37ee3d17c230d7dcc (diff)
downloadzsh-245503929e0369e985e694684b557aef6d1432eb.tar.gz
zsh-245503929e0369e985e694684b557aef6d1432eb.zip
43346: various completion option updates
Diffstat (limited to 'Completion/Unix/Command/_md5sum')
-rw-r--r--Completion/Unix/Command/_md5sum8
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_md5sum b/Completion/Unix/Command/_md5sum
index 8e93fbbac..3dfcd6322 100644
--- a/Completion/Unix/Command/_md5sum
+++ b/Completion/Unix/Command/_md5sum
@@ -7,7 +7,7 @@
#
# @todo Support BusyBox?
-local type
+local type ign
local -a args
case $service in
@@ -17,16 +17,18 @@ case $service in
esac
# General options
-args+=(
+(( $#words > 2 )) && ign='!'
+args=(
'(: -)--help[display help information]'
'(: -)--version[display version information]'
)
# Summing options
-args+=(
+args=( ${ign}${^args}
+ sum
'(chk)--tag[create BSD-style checksums]'
'(chk -b -t --binary --text)'{-b,--binary}'[read in binary mode]'
'(chk -b -t --binary --text)'{-t,--text}'[read in text mode]'
+ '(chk -z --zero)'{-z,--zero}'[end each output line with NUL and disable filename escaping]'
)
# This is the only option that differs amongst all of these tools
[[ $service == *b2* ]] && args+=(