summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_awk1
-rw-r--r--Completion/Unix/Command/_cat3
-rw-r--r--Completion/Unix/Command/_dbus6
-rw-r--r--Completion/Unix/Command/_dd2
-rw-r--r--Completion/Unix/Command/_dig18
-rw-r--r--Completion/Unix/Command/_dmidecode1
-rw-r--r--Completion/Unix/Command/_enscript2
-rw-r--r--Completion/Unix/Command/_flac1
-rw-r--r--Completion/Unix/Command/_getent3
-rw-r--r--Completion/Unix/Command/_gnutls13
-rw-r--r--Completion/Unix/Command/_gpg5
-rw-r--r--Completion/Unix/Command/_gprof2
-rw-r--r--Completion/Unix/Command/_install1
-rw-r--r--Completion/Unix/Command/_less23
-rw-r--r--Completion/Unix/Command/_lsof6
-rw-r--r--Completion/Unix/Command/_lua1
-rw-r--r--Completion/Unix/Command/_mpc14
-rw-r--r--Completion/Unix/Command/_nm8
-rw-r--r--Completion/Unix/Command/_objdump14
-rw-r--r--Completion/Unix/Command/_pandoc68
-rw-r--r--Completion/Unix/Command/_perl1
-rw-r--r--Completion/Unix/Command/_pgrep8
-rw-r--r--Completion/Unix/Command/_ping2
-rw-r--r--Completion/Unix/Command/_ps2
-rw-r--r--Completion/Unix/Command/_pv4
-rw-r--r--Completion/Unix/Command/_readelf13
-rw-r--r--Completion/Unix/Command/_rsync15
-rw-r--r--Completion/Unix/Command/_samba35
-rw-r--r--Completion/Unix/Command/_sqlite4
-rw-r--r--Completion/Unix/Command/_strip102
-rw-r--r--Completion/Unix/Command/_tiff2
-rw-r--r--Completion/Unix/Command/_truss6
-rw-r--r--Completion/Unix/Command/_user_admin17
-rw-r--r--Completion/Unix/Command/_vmstat2
-rw-r--r--Completion/Unix/Command/_vorbis5
-rw-r--r--Completion/Unix/Command/_w4
-rw-r--r--Completion/Unix/Command/_wget3
-rw-r--r--Completion/Unix/Command/_xmlsoft1
-rw-r--r--Completion/Unix/Command/_xxd14
39 files changed, 286 insertions, 146 deletions
diff --git a/Completion/Unix/Command/_awk b/Completion/Unix/Command/_awk
index e8f4a2530..b69cc5cf8 100644
--- a/Completion/Unix/Command/_awk
+++ b/Completion/Unix/Command/_awk
@@ -50,6 +50,7 @@ case $variant in
{-D-,--debug=-}'[enable debugging]::debugger command file:_files'
{-g,--gen-pot}'[scan awk program and generate .po file on stdout]'
'*'{-i+,--include}'[load source library]:library file:->script'
+ {-I,--trace}'[print internal byte code names as they are executed]'
'*'{-l+,--load}'[load dynamic extension]:extension:->extension'
{-M,--bignum}'[select arbitrary-precision arithmetic on numbers]'
{-o-,--pretty-print=-}'[pretty-print awk program]::output file:_files'
diff --git a/Completion/Unix/Command/_cat b/Completion/Unix/Command/_cat
index 74d7278b8..526c49e31 100644
--- a/Completion/Unix/Command/_cat
+++ b/Completion/Unix/Command/_cat
@@ -38,6 +38,9 @@ elif [[ "$OSTYPE" == (*bsd|dragonfly|darwin)* ]]; then
'-B+[read with buffer of specified size]:size (bytes)'
'-f[only attempt to display regular files]'
)
+ [[ $OSTYPE = darwin* ]] && args+=(
+ '-l[set an exclusive advisory lock on standard output]'
+ )
elif [[ $OSTYPE = solaris* ]]; then
args=(
-A "-*"
diff --git a/Completion/Unix/Command/_dbus b/Completion/Unix/Command/_dbus
index 37b5458d7..d2a93152c 100644
--- a/Completion/Unix/Command/_dbus
+++ b/Completion/Unix/Command/_dbus
@@ -8,11 +8,13 @@ case $service in
dbus-send)
_arguments -A "--*" -C \
'(--session)--system' '(--system)--session' \
- '--address=-:bus address:->addresses' \
+ '--bus=-:bus address:->addresses' \
+ '--peer=-:bus address:->addresses' \
'--dest=-:connection:->connections' \
'--print-reply=-::format:(literal)' \
'--reply-timeout=-:timeout (ms)' \
- '--type=-:type:(method_call signal)' \
+ '--sender=-:name' \
+ '--type=-:type [signal]:(method_call signal)' \
'(* -)--help' \
':object path:->objectpaths' \
':message name:->methods' \
diff --git a/Completion/Unix/Command/_dd b/Completion/Unix/Command/_dd
index 10682bc8e..c55efb68c 100644
--- a/Completion/Unix/Command/_dd
+++ b/Completion/Unix/Command/_dd
@@ -74,7 +74,7 @@ case $variant in
vals+=(
'status[specify level of information to print to stderr]:level:(none noxfer progress)'
)
- flags+=( fullblock noatime nocache count_bytes skip_bytes seek_bytes )
+ flags+=( fullblock noatime nocache )
conv+=( excl nocreat fdatasync fsync )
units=( c:1 w:2 b:512 kB:1000 K:1024 MB:1000^2 M:1024\^2 GB G TB T PB P EB E ZB Z YB Y )
;;
diff --git a/Completion/Unix/Command/_dig b/Completion/Unix/Command/_dig
index 3081e2cfd..c09bebbe5 100644
--- a/Completion/Unix/Command/_dig
+++ b/Completion/Unix/Command/_dig
@@ -6,8 +6,9 @@ local -a alts args
'*+'{no,}'tcp[use TCP instead of UDP for queries]'
'*+'{no,}'ignore[ignore truncation in UDP responses]'
'*+domain=[set search list to single domain]:domain:_hosts'
- '*+dscp=[set DSCP code point for query]:code point (0..63)'
+ '!*+dscp=:code point (0..63)'
'*+'{no,}'search[use search list defined in resolv.conf]'
+ '!*+'{no,}defname
'*+'{no,}'showsearch[show intermediate results in domain search]'
'*+split[split hex/base64 fields into chunks]:width (characters) [56]'
'*+'{no,}'aaonly[set aa flag in the query]'
@@ -18,6 +19,7 @@ local -a alts args
'*+'{no,}'class[display the CLASS whening printing the record]'
'*+'{no,}'cookie[add a COOKIE option to the request]'
'*+'{no,}'crypto[display cryptographic fields in DNSSEC records]'
+ '*+'{no,}'dns64prefix[get the DNS64 prefixes from ipv4only.arpa]'
'*+edns=[specify EDNS version for query]:version (0-255)'
'*+noedns[clear EDNS version to be sent]'
'*+ednsflags=[set EDNS flags bits]:flags'
@@ -27,11 +29,15 @@ local -a alts args
'*+'{no,}'expandaaaa[expand AAAA records]'
'*+'{no,}'expire[send an EDNS Expire option]'
'*+'{no,}'header-only[send query without a question section]'
+ '*+'{no,}'https=[DNS-over-HTTPS POST mode]::endpoint [/dns-query]'
+ '!*+'{no,}'https-post=::endpoint [/dns-query]'
+ '*+'{no,}'https-get=[DNS-over-HTTPS GET mode]::endpoint [/dns-query]'
+ '*+'{no,}'http-plain=[DNS-over-HTTP POST mode]::endpoint [/dns-query]'
+ '*+'{no,}'http-plain-get=[DNS-over-HTTP GET mode]::endpoint [/dns-query]'
'*+'{no,}'idnin[set processing of IDN domain names on input]'
'*+'{no,}'idnout[set conversion of IDN puny code on output]'
'*+'{no,}'keepalive[request EDNS TCP keepalive]'
'*+'{no,}'keepopen[keep TCP socket open between queries]'
- '*+'{no,}'mapped[allow mapped IPv4 over IPv6 to be used]'
'*+'{no,}'recurse[set the RD (recursion desired) bit in the query]'
'*+'{no,}'nssearch[search all authoritative nameservers]'
'*+opcode[set DNS message opcode of the request]:opcode [QUERY]:(QUERY IQUERY STATUS NOTIFY UPDATE)'
@@ -39,10 +45,12 @@ local -a alts args
'*+'{no,}'trace[trace delegation down from root]'
'*+'{no,}'cmd[print initial comment in output]'
'*+'{no,}'short[print terse output]'
+ '*+'{no,}'showbadcookie[show BADCOOKIE message]'
'*+'{no,}'identify[print IP and port of responder]'
'*+'{no,}'comments[print comment lines in output]'
'*+'{no,}'stats[print statistics]'
'*+padding[set padding block size]:size [0]'
+ '*+qid=[specify query ID]:query ID'
'*+'{no,}'qr[print query as it was sent]'
'*+'{no,}'question[print question section of a query]'
'*+'{no,}'raflag[set RA flag in the query]'
@@ -52,6 +60,11 @@ local -a alts args
'*+'{no,}'subnet[send EDNS client subnet option]:addr/prefix-length'
'*+'{no,}'tcflag[set TC flag in the query]'
'*+timeout=[set query timeout]:timeout (seconds) [5]'
+ '*+'{no,}'tls[DNS-over-TLS mode]'
+ '*+'{no,}"tls-ca=[enable remote server's TLS certificate validation]:file:_files"
+ '*+'{no,}"tls-hostname=[explicitly set the expected TLS hostname]:hostname"
+ '*+'{no,}'tls-certfile=[load client TLS certificate chain from file]:file:_files'
+ '*+'{no,}'tls-keyfile=[load client TLS private key from file]:file:_files'
'*+tries=[specify number of UDP query attempts]:tries'
'*+retry=[specify number of UDP query retries]:retries'
'*+'{no,}'rrcomments[set display of per-record comments]'
@@ -65,7 +78,6 @@ local -a alts args
'*+'{no,}'nsid[include EDNS name server ID request in query]'
'*+'{no,}'ttlid[display the TTL whening printing the record]'
'*+'{no,}'ttlunits[display the TTL in human-readable units]'
- '*+'{no,}'unexpected[print replies from unexpected sources]'
'*+'{no,}'unknownformat[print RDATA in RFC 3597 "unknown" format]'
'*+'{no,}'yaml[present the results as YAML]'
'*+'{no,}'zflag[set Z flag in query]'
diff --git a/Completion/Unix/Command/_dmidecode b/Completion/Unix/Command/_dmidecode
index 047b74f6d..e2c511313 100644
--- a/Completion/Unix/Command/_dmidecode
+++ b/Completion/Unix/Command/_dmidecode
@@ -4,6 +4,7 @@ _arguments -s \
'(-d --dev-mem --from-dump)'{-d+,--dev-mem=}'[read memory from specified file]:memory device [/dev/mem]:_files' \
'(-)'{-h,--help}'[display usage information]' \
'(-q --quiet -u --dump)'{-q,--quiet}'[be less verbose]' \
+ '--no-quirks[decode everything without quirks]' \
'(-t --type -H --handle -u --dump --dump-bin -s --string)'{-s+,--string=}'[only display value of specified DMI string]:DMI string:(bios-vendor bios-version bios-release-date system-manufacturer system-product-name system-version system-serial-number system-uuid baseboard-manufacturer baseboard-product-name baseboard-version baseboard-serial-number baseboard-asset-tag chassis-manufacturer chassis-type chassis-version chassis-serial-number chassis-asset-tag processor-family processor-manufacturer processor-version processor-frequency)' \
'(-s --string -H --handle --dump-bin)*'{-t+,--type=}'[only display entries of specified type]:entry type:(bios system baseboard chassis processor memory cache connector slot)' \
'(-s --string -t --type -H --handle --dump-bin)'{-H,--handle=}'[only display the entry of specified handle]:handle' \
diff --git a/Completion/Unix/Command/_enscript b/Completion/Unix/Command/_enscript
index 3e09da5a4..4658ae4bc 100644
--- a/Completion/Unix/Command/_enscript
+++ b/Completion/Unix/Command/_enscript
@@ -128,7 +128,7 @@ case "$state" in
local suf='{'
compquote suf
if [[ ${PREFIX} = *[%$]D${suf}[^}]# ]]; then
- _strftime
+ _date_formats
elif [[ ${(Q)PREFIX} = *\$\([^\)]# ]]; then
compset -P '*\('
_parameters -g '*export*' -S '\)'
diff --git a/Completion/Unix/Command/_flac b/Completion/Unix/Command/_flac
index 82b6f0160..1773061ee 100644
--- a/Completion/Unix/Command/_flac
+++ b/Completion/Unix/Command/_flac
@@ -85,6 +85,7 @@ case $service in
'(-p --qlp-coeff-precision-search -q --qlp-coeff-precision)'{-p,--qlp-coeff-precision-search}'[exhaustively search LP coeff quantization]' \
'(-p --qlp-coeff-precision-search -q --qlp-coeff-precision)'{-q,--qlp-coeff-precision=}'[specify precision]:precision (bits)' \
'(-r --rice-partition-order)'{-r,--rice-partition-order=}'[set min/max residual partition order]:order' \
+ "--limit-min-bitrate[don't allow frames consisting of only constant subframes]" \
'--endian=:byte order:(big little)' \
'--channels=:channels' \
'--bps=:bits per sample' \
diff --git a/Completion/Unix/Command/_getent b/Completion/Unix/Command/_getent
index b96852db3..5604e526e 100644
--- a/Completion/Unix/Command/_getent
+++ b/Completion/Unix/Command/_getent
@@ -8,6 +8,7 @@ typeset -A opt_args
if _pick_variant -r is_gnu gnu='(Free Soft|GNU|GLIBC|Gentoo)' unix --version; then
args+=(
'(- 1 *)'{-\?,--help}'[display help information]'
+ '(-A --no-addrconfig)'{-A,--no-addrconfig}"[don't filter out unsupported IPv4/IPv6 addresses (with ahosts*)]"
'(- 1 *)--usage[display a short usage message]'
'(- 1 *)'{-V,--version}'[display version information]'
'*'{-s+,--service=}'[specify service configuration to use]: :->services'
@@ -23,7 +24,7 @@ case $state in
services)
# @todo GNU getent supports both `-s svc` and `-s db:svc`; we only complete
# the former here
- services=( {,/usr}/lib/{,*-linux-gnu/}libnss_*(N-.:fr:t:s/libnss_//) )
+ services=( {,/usr}/lib{,64}/{,*-linux-gnu/}libnss_*(N-.:fr:t:s/libnss_//) )
_wanted services expl 'service or database:service' \
compadd ${(u)services%-*} \
&& ret=0
diff --git a/Completion/Unix/Command/_gnutls b/Completion/Unix/Command/_gnutls
index b9f91264d..9b8bcf6ea 100644
--- a/Completion/Unix/Command/_gnutls
+++ b/Completion/Unix/Command/_gnutls
@@ -4,8 +4,7 @@ local -a args
args=(
'(- :)'{-h,--help}'[display help information]'
- '(- :)--version=[display version information]:information:((v\:simple c\:copyright n\:full))'
- '(- :)-v[display version information]'
+ '(- :)'{-v+,--version=-}'[display version information]:information:((v\:simple c\:copyright n\:full))'
'(- :)'{-\!,--more-help}'[display help information through a pager]'
'(-d --debug)'{-d,--debug}'[enable debugging]:debug level'
\*{-V,--verbose}'[more verbose output]'
@@ -17,6 +16,11 @@ case "$service" in
'(-p --port)'{-p,--port}'[specify port or service to connect to]:port:_ports'
)
;|
+ gnutls-*|certtool)
+ args+=(
+ '--attime=[perform validation at the timestamp instead of the system time]:timestamp'
+ )
+ ;|
gnutls-cli*)
args+=(
'(--app-proto --starttls-proto)'{--app-proto,--starttls-proto}"=[specify application protocol to use to obtain the server's certificate]:protocol:(https ftp smtp imap ldap xmpp lmtp pop3 nntp sieve postgres)"
@@ -30,6 +34,7 @@ case "$service" in
'(-u --udp)'{-u,--udp}'[use DTLS (datagram TLS) over UDP]'
'--mtu=[set MTU for datagram TLS]:mtu'
'--srtp-profiles=[offer SRTP profiles]:string'
+ '*--compress-cert=[compress certificate]:compression method'
'(-b --heartbeat)'{-b,--heartbeat}'[activate heartbeat support]'
'--x509fmtder[use DER format for certificates to read from]'
'--priority=[specify TLS algorithms and protocols to enable]:(NORMAL PFS SECURE128 SECURE192 SUITEB128 SUITEB192 LEGACY PERFORMANCE NONE)'
@@ -94,7 +99,8 @@ case "$service" in
'--post-handshake-auth[enable post-handshake authentication under TLS1.3]'
'--inline-commands[inline commands of the form ^<cmd>^]'
'--inline-commands-prefix=[change delimiter used for inline commands]:delimiter [^]'
- '--fips140-mode[report status of FIPS140-2 mode in gnutls library]'
+ '--fips140-mode[report status of FIPS140-3 mode in gnutls library]'
+ '--list-config[report configuration of the library]'
'--logfile=[redirect informational messages to a specific file]:file:_files'
'--waitresumption[block waiting for the resumption data under TLS1.3]'
'--ca-auto-retrieve[enable automatic retrieval of missing CA certificates]'
@@ -127,6 +133,7 @@ case "$service" in
'--ignore-ocsp-response-errors[ignore any errors when setting the OCSP response]'
'--recordsize=[specify maximum record size to advertise]:record size (0-16384)'
'--httpdata=[specify data to use as HTTP response]:file:_files'
+ '--timeout=[specify he timeout period for server]:timeout'
)
;;
diff --git a/Completion/Unix/Command/_gpg b/Completion/Unix/Command/_gpg
index 5d54865d5..2161d2d24 100644
--- a/Completion/Unix/Command/_gpg
+++ b/Completion/Unix/Command/_gpg
@@ -93,6 +93,7 @@ fi
'--no-default-recipient[reset default recipient]'
'*--encrypt-to[specify recipient]:key:->public-keys'
'(--encrypt-to)--no-encrypt-to[disable the use of all --encrypt-to keys]'
+ '--group[set up email aliases]:spec'
'-z[specify compression level]:compression level:((0\:no\ compression 1\:minimum 2 3 4 5 6\:default 7 8 9\:maximum))'
'(-t --textmode)'{-t,--textmode}'[use canonical text mode]'
'(-n --dry-run)'{-n,--dry-run}"[don't make any changes]"
@@ -117,6 +118,7 @@ fi
'--utf8-strings' '--no-utf8-strings[arguments are not in UTF8]'
'(--no-options)--options[specify file to read options from]:options file:_files'
"(--options)--no-options[don't read options file]"
+ '--log-file[write server mode logs to file]:file:_files'
'--'{attribute,passphrase,command}'-fd:file descriptor:_file_descriptors'
'--sk-comments[include secret key comments when exporting keys]'
'(--emit-version)--no-emit-version[omit version string in clear text signatures]'
@@ -170,6 +172,9 @@ fi
'--ctapi-driver[file to use to access smartcard reader]:file:_files'
'--pcsc-driver[file to use to access smartcard reader]:file:_files'
'--auto-key-locate:parameters'
+ '--auto-key-import[import missing key from a signature]'
+ '--include-key-block[include the public key in signatures]'
+ '--disable-dirmngr[disable all access to the dirmngr]'
'--dump-options[show all options]'
)
diff --git a/Completion/Unix/Command/_gprof b/Completion/Unix/Command/_gprof
index a7e602fd5..6b97506a6 100644
--- a/Completion/Unix/Command/_gprof
+++ b/Completion/Unix/Command/_gprof
@@ -4,7 +4,7 @@ local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_arguments -C -s -{a,b,c,D,h,i,l,L,r,s,T,v,w,x,y,z} \
- -{A,C,e,E,f,F,J,n,N,O,p,P,q,Q,R,S,t,Z}:'function name:->funcs' \
+ -{A,B,C,e,E,f,F,J,n,N,O,p,P,q,Q,R,S,t,Z}:'function name:->funcs' \
'-I:directory:_dir_list' \
'-d-:debug level:' '-k:function names:->pair' \
'-m:minimum execution count:' \
diff --git a/Completion/Unix/Command/_install b/Completion/Unix/Command/_install
index 238b8b5bc..881c99620 100644
--- a/Completion/Unix/Command/_install
+++ b/Completion/Unix/Command/_install
@@ -27,6 +27,7 @@ if _pick_variant gnu='Free Soft' unix --version; then
'(-b --backup)--backup=[create backup; optionally specify method]:: :->controls'
"${lx}--context=-[like -Z, or specify SELinux security context to set]::SELinux security context:_selinux_contexts -a file_type"
'-D[create all leading destination path components]'
+ '--debug[explain how a file is copied. Implies -v]'
'(: -)--help[display help information]'
"${lx}--preserve-context[preserve SELinux security context]"
'--strip-program=[specify program used to strip binaries]:strip program:_files'
diff --git a/Completion/Unix/Command/_less b/Completion/Unix/Command/_less
index 69f75fd0e..8772f5771 100644
--- a/Completion/Unix/Command/_less
+++ b/Completion/Unix/Command/_less
@@ -56,7 +56,7 @@ _arguments -S -s -A "[-+]*" \
'(-L --no-lessopen)'{-L,--no-lessopen}'[ignore the LESSOPEN environment variable]' \
'(-M --LONG-PROMPT -m --long-prompt)'{-m,--long-prompt}'[prompt verbosely]' \
'(-m --long-prompt -M --LONG-PROMPT)'{-M,--LONG-PROMPT}'[prompt very verbosely]' \
- '(-N --LINE-NUMBERS -n --line-numbers)'{-n,--line-numbers}"[don't keep track of line numbers]" \
+ '(-N --LINE-NUMBERS -n --line-numbers)'{-n,--line-numbers}'[suppress line numbers in prompts and messages]' \
'(-n --line-numbers -N --LINE-NUMBERS)'{-N,--LINE-NUMBERS}'[show line numbers]' \
'(* -O --LOG-FILE -o --log-file)'{-o+,--log-file=}'[copy input to file]:file:_files' \
'(* -o --log-file -O --LOG-FILE)'{-O+,--LOG-FILE=}'[copy input to file, overwriting if necessary]:file:_files' \
@@ -83,18 +83,39 @@ _arguments -S -s -A "[-+]*" \
'(-\" --quotes)'{'-\"+',--quotes=}'[change quoting character]:quoting characters' \
'(-~ --tilde)'{-~,--tilde}"[don't display tildes after end of file]" \
'(-\# --shift)'{'-\#+',--shift=}"[specify amount to move when scrolling horizontally]:number" \
+ '--exit-follow-on-close[exit F command on a pipe when writer closes pipe]' \
'--file-size[automatically determine the size of the input file]' \
+ '--header=[set header size]:lines,columns' \
'--incsearch[search file as each pattern character is typed in]' \
+ '--intr=[specify interrupt character instead of ^X]:char [^X]' \
'--line-num-width=[set the width of line number field]:width [7]' \
+ '--modelines=[look for vim modelines]:lines to search' \
'--follow-name[the F command changes file if the input file is renamed]' \
'--mouse[enable mouse input]' \
'--no-histdups[remove duplicates from command history]' \
+ "--no-number-headers[don't give line numbers to header lines]" \
+ "--no-search-headers[don't search in header lines or columns]" \
+ "--no-vbell[disable the terminal's visual bell]" \
+ '--redraw-on-quit[redraw final screen when quitting]' \
'--rscroll=[set the character used to mark truncated lines]:character [>]' \
'--save-marks[retain marks across invocations of less]' \
+ '--search-options=[set default options for every search]: : _values -s ""
+ "search option"
+ "E[multi-file]" "F[from first line]" "K[highlight]"
+ "N[non-matching]" "R[literal]" "W[wrap]" -' \
+ '--show-preproc-errors[display a message if preprocessor exits with an error status]' \
+ '--proc-backspace[process backspaces for bold/underline]' \
+ '--SPECIAL-BACKSPACE[treat backspaces as control characters]' \
+ '--proc-return[delete carriage returns before newline]' \
+ '--SPECIAL-RETURN[treat carriage returns as control characters]' \
+ '--proc-tab[expand tabs to spaces]' \
+ '--SPECIAL-TAB[treat tabs as control characters]' \
'--status-col-width=[set the width of the -J status column]:width [2]' \
+ '--status-line[highlight or color the entire line containing a mark]' \
'--use-backslash[subsequent options use backslash as escape char]' \
'--use-color[enable colored text]' \
'--wheel-lines=[specify lines to move for each click of the mouse wheel]:lines' \
+ '--wordwrap[wrap lines at spaces]' \
"$files[@]" && ret=0
diff --git a/Completion/Unix/Command/_lsof b/Completion/Unix/Command/_lsof
index 8afb55e1d..60f59a589 100644
--- a/Completion/Unix/Command/_lsof
+++ b/Completion/Unix/Command/_lsof
@@ -9,6 +9,7 @@ case $OSTYPE in
'-E[display endpoint info for pipes, sockets and pseudoterminal files but not files of the endpoints]'
'+E[display endpoint info for pipes, sockets and pseudoterminal files including files of the endpoints]'
'-X[skip reporting of info on network connections]'
+ '*-Z[display or filter by SELinux security context]::context pattern:_selinux_contexts -a domain'
)
;;
solaris*)
@@ -23,7 +24,6 @@ _arguments -C -s -S $args \
'(-)'{-\?,-h}'[list help]' \
'-a[AND selections]' \
'-b[avoid kernel blocks]' \
- '-C[disable reporting of path name components]' \
'+c[truncate command name to specified characters]:characters' \
'-c[list files with specified command name beginning]:command name' \
'+d[search for open instances for contents of specified dir]:search directory:_files -/' \
@@ -31,16 +31,19 @@ _arguments -C -s -S $args \
'+D[recursively search from specified dir]:search directory:_files -/' \
'-D[direct use of device cache file]:function:((\?\:report\ device\ cache\ file\ paths b\:build\ the\ device\ cache\ file i\:ignore\ the\ device\ cache\ file r\:read\ the\ device\ cache\ file u\:read\ and\ update\ the\ device\ cache\ file))' \
'*-+e[exempt filesystem from blocking kernel calls]:file system:_directories' \
+ '-+E[show endpoint information for pipes, sockets, ptys, mqueues and eventfds; with -E, omit endpoint files]' \
'-f[inhibit listing of kernel file structure info]::info type:->file-structures' \
'+f[enable listing of kernel file structure info]::info type:->file-structures' \
'-F[select output fields]:fields:->fields' \
'-g[select by process group id]::process group id:_sequence -s , _pgids' \
+ '-H[print human readable sizes]' \
'(*)*-i[select internet files]::address:->addresses' \
'-K+[select listing of tasks of processes]::value:((i\:ignore\ tasks))' \
'-k[specify kernel name list file]:kernel file:_files' \
'-l[inhibit conversion of UIDs to user names]' \
'-L[list no link counts]' \
'+L[list all link counts]::max link count for listed files' \
+ '+m[specify or write a mount supplement file]::mount supplement file:_files' \
'-m[specify kernel memory file]:kernel memory file:_files' \
'-M[disable reporting of portmapper registrations]' \
'+M[enable reporting of portmapper registrations]' \
@@ -49,6 +52,7 @@ _arguments -C -s -S $args \
'(-s)-o[list file offset]::digits for file offset' \
'-O[avoid overheads of bypassing potential blocking]' \
'-P[inhibit conversion of port numbers to port names]' \
+ '-Q[ignore failed search terms]' \
'-p[list files for specified processes]:process ID:_sequence -s , _pids' \
'-r[repeat listing endlessly]::delay (seconds)' \
'+r[repeat listing until no files listed]::delay (seconds)' \
diff --git a/Completion/Unix/Command/_lua b/Completion/Unix/Command/_lua
index 7254d3819..3a1ef4fd7 100644
--- a/Completion/Unix/Command/_lua
+++ b/Completion/Unix/Command/_lua
@@ -41,6 +41,7 @@ _lua() {
_arguments -S -A '-*' : \
'*-e+[execute specified command string]:command string' \
'-E[ignore environment variables]' \
+ '-W[turn warnings on]' \
'-i[enter interactive mode]' \
'*-l+[specify library or module to require]: :_lua_libraries' \
'-v[display version information]' \
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 7f7adc7b4..c3f93878c 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -26,6 +26,7 @@ _mpc_command() {
mpc_cmds=(
add:"append a song to the end of the current playlist"
+ albumart:"download album art for the given song and write to stdout"
cdprev:"compact disk player-like previous command"
channels:"list the channels that other clients have subscribed to"
clear:"clear the current playlist"
@@ -57,6 +58,7 @@ _mpc_command() {
prio:"change song priorities in the queue"
queued:"show the next queued song"
random:"toggle random mode, or specify state"
+ readpicture:"download a picture from the given song and write to stdout"
repeat:"toggle repeat mode, or specify state"
single:"toggle single mode, or specify state"
consume:"toggle consume mode, or specify state"
@@ -205,6 +207,10 @@ _mpc_add() {
_mpc_helper_files
}
+_mpc_albumart() {
+ _mpc_helper_files
+}
+
_mpc_del() {
_mpc_helper_songnumbers
}
@@ -304,8 +310,14 @@ _mpc_random() {
_mpc_helper_bool
}
+_mpc_readpicture() {
+ _mpc_helper_files
+}
+
_mpc_single() {
- _mpc_helper_bool
+ local state
+ _description states expl state
+ compadd "$@" "$expl[@]" on once off
}
_mpc_consume() {
diff --git a/Completion/Unix/Command/_nm b/Completion/Unix/Command/_nm
index b142c1d54..a78eb7068 100644
--- a/Completion/Unix/Command/_nm
+++ b/Completion/Unix/Command/_nm
@@ -18,7 +18,7 @@ if _pick_variant -r variant binutils=GNU elftoolchain=elftoolchain elfutils=elfu
'(-f --format -P --portability)-B[same as --format=bsd]'
'(-u --undefined-only)--defined-only[display only defined symbols]'
'(-n --numeric-sort -p --no-sort --size-sort -v)'{-n,--numeric-sort}'[sort symbols numerically by address]'
- '(-p --no-sort -n -v --numeric-sort -r --reverse-sort --size-sort)'{-p,--no-sort}'[do not sort symbols]'
+ '(-p --no-sort -n -v --numeric-sort -r --reverse-sort --size-sort)'{-p,--no-sort}"[don't sort symbols]"
'(-P --portability -B -f --format)'{-P,--portability}'[same as --format=posix]'
'(-r --reverse-sort -p --no-sort)'{-r,--reverse-sort}'[reverse sort order]'
'(-u --undefined-only --defined-only)'{-u,--undefined-only}'[display only undefined symbols]'
@@ -60,10 +60,10 @@ if _pick_variant -r variant binutils=GNU elftoolchain=elftoolchain elfutils=elfu
args+=(
'!(--no-recurse-limit)--recurse-limit'
'--no-recurse-limit[disable demangling recursion limit]'
- '(-f --format -P -j)'{-f,--format}'[specify output format]:format:(bsd sysv posix just-symbols)'
- '(-C --no-demangle)--demangle=-[decode symbol names]::style [auto]:(auto gnu lucid arm hp edg gnu-v3 java gnat rust dlang)'
+ '(-f --format -P -j --just-symbols)'{-f+,--format=}'[specify output format]:format [bsd]:(bsd sysv posix just-symbols)'
+ '(-C --no-demangle)--demangle=-[decode symbol names]::style [auto]:(none auto gnu-v3 java gnat dlang rust)'
'--ifunc-chars=[specify characters to use for indirect function symbols]:characters for global/local indirect function symbols [ii]'
- '(-B -f --format -P --portability -j --just-symbols)'{-j,--just-symbols}'[Same as --format=just-symbols]'
+ '(-B -f --format -P --portability -j --just-symbols)'{-j,--just-symbols}'[same as --format=just-symbols]'
'--plugin[load specified plugin]:plugin'
'--quiet[suppress no "no symbols" diagnostic]'
'--special-syms[include special symbols in the output]'
diff --git a/Completion/Unix/Command/_objdump b/Completion/Unix/Command/_objdump
index e2dde7e4c..94c01eb83 100644
--- a/Completion/Unix/Command/_objdump
+++ b/Completion/Unix/Command/_objdump
@@ -38,8 +38,10 @@ case $variant in
'*-W-[display DWARF info in the file]::dwarf section:->short-dwarf-names'
'*--dwarf=-[display DWARF info in the file]::dwarf section:->dwarf-names'
+ '(-L --process-links)'{-L,--process-links}'[display the contents of non-debug sections in separate debuginfo files]'
- '--ctf=[display compact C type format info for section]:section'
+ '--ctf=-[display compact C type format info for section]::section'
+ '--sframe=-[display SFrame info from section]::section name [.sframe]'
'(-t --syms)'{-t,--syms}'[display the contents of the symbol table(s)]'
'(-T --dynamic-syms)'{-T,--dynamic-syms}'[display the contents of the dynamic symbol table]'
'(-R --dynamic-reloc)'{-R,--dynamic-reloc}'[display the dynamic relocation entries in the file]'
@@ -59,11 +61,13 @@ case $variant in
\*{-I+,--include=}'[add directory to search list for source files]:directory:_files -/'
'(-l --line-numbers)'{-l,--line-numbers}'[include line numbers and filenames in output]'
'(-F --file-offsets)'{-F,--file-offsets}'[include file offsets when displaying information]'
- '(-C --demangle)-C[decode mangled/processed symbol names]'
- '(-C --demangle)--demangle=-[decode mangled/processed symbol names]::style:(auto gnu lucid arm hp edg gnu-v3 java gnat rust dlang)'
+ '(--demangle)-C[decode symbol names]'
+ '(-C)--demangle=-[decode symbol names]::style [auto]:(none auto gnu-v3 java gnat dlang rust)'
'!(--no-recurse-limit)--recurse-limit'
'--no-recurse-limit[disable demangling recursion limit]'
'(-w --wide)'{-w,--wide}'[format output for more than 80 columns]'
+ '-U+[specify how to display unicode characters]:method:(d l e x h i)'
+ '--unicode=[specify how to display unicode characters]:method:(default locale escape hex highlight invalid)'
'(-z --disassemble-zeroes)'{-z,--disassemble-zeroes}"[don't skip blocks of zeroes when disassembling]"
'--start-address=[only process data whose address is >= ADDR]:address'
@@ -73,15 +77,17 @@ case $variant in
'(--show-raw-insn --no-show-raw-insn)'--{,no-}show-raw-insn'[display hex alongside symbolic disassembly]'
'--insn-width=[display specified number of bytes on a single line with -d]:width (bytes)'
'--adjust-vma=[add offset to all displayed section addresses]:offset'
+ '--show-all-symbols[when disassembling, display all symbols at a given address]'
'--special-syms[include special symbols in symbol dumps]'
'--inlines[print all inlines for source line (with -l)]'
'--prefix=[add prefix to absolute paths for -S]:prefix'
'--prefix-strip=[strip initial directory names for -S]:level'
"--dwarf-depth=[don't display DIEs at specified or greater depth]:depth"
'--dwarf-start=[display DIEs at specified or deeper depth]:depth'
- '--dwarf-check[perform additional dwarf internal consistency checks]'
+ '--dwarf-check[perform additional dwarf consistency checks]'
'--ctf-parent=[use specified section as the CTF parent]:section'
'--visualize-jumps=-[visualize jumps by drawing ASCII art lines]::color:(color extended-color off)'
+ '--disassembler-color=[control use of colored syntax highlighting in disassembly output]:color use [on]:(off terminal on extended)'
)
;;
elfutils)
diff --git a/Completion/Unix/Command/_pandoc b/Completion/Unix/Command/_pandoc
index b0fff80d6..797e73eaa 100644
--- a/Completion/Unix/Command/_pandoc
+++ b/Completion/Unix/Command/_pandoc
@@ -113,7 +113,7 @@ _pandoc_defaults_file() {
# choose reference location
(( $+functions[_pandoc_reference_location] )) ||
-_pandoc_reference_location(){
+_pandoc_reference_location() {
local -a policies
policies=(
'block:place references at the end of the current (top-level) block'
@@ -123,22 +123,16 @@ _pandoc_reference_location(){
_describe 'location' policies
}
-# choose top level division
-(( $+functions[_pandoc_top_level_division] )) ||
-_pandoc_top_level_division(){
- _values 'top level division' default section chapter part
-}
-
# choose email obfusication
(( $+functions[_pandoc_email_obfusication] )) ||
_pandoc_email_obfusication(){
local -a policies
policies=(
- 'none:leave mailto: links as they are'
- 'javascript:obfuscates them using JavaScript'
- 'references:obfuscates them by printing their letters as decimal or hexadecimal character references'
+ 'none:leave mailto: links as-is'
+ 'javascript:obfuscate using JavaScript'
+ 'references:obfuscate by printing letters as decimal or hexadecimal character references'
)
- _describe 'obfuscation policy [none]' policies
+ _describe 'e-mail obfuscation policy [none]' policies
}
# choose wrapping policy
@@ -181,26 +175,26 @@ _pandoc_track_changes() {
_arguments -s \
{-f+,-r+,--from=,--read=}'[specify input format]: :_pandoc_format -T input' \
{-t+,-w+,--to=,--write=}'[specify output format]: :_pandoc_format -T output' \
- {-o+,--output=}'[write output to FILE instead of stdout]:file:_files' \
+ {-o+,--output=}'[write output to specified file instead of stdout]:file:_files' \
'--data-dir=[specify the user data directory to search for pandoc data files]:data directory:_files -/' \
{-d+,--defaults=}'[read default from YAML file]: :_pandoc_defaults_file' \
'--shift-heading-level-by=[shift heading levels by specified number]:positive or negative integer: ' \
'!--base-header-level=:number [1]:(1 2 3 4 5)' \
- '!--strip-empty-paragraphs[deprecated. Use the +empty_paragraphs extension instead]' \
- '--indented-code-classes=[classes to use for indented code blocks]:class list (comma-separated)' \
+ '--indented-code-classes=[specify classes to use for indented code blocks]:class list (comma-separated)' \
'--default-image-extension=[specify a default extension to use when image paths/URLs have no extension]:extension: ' \
'--file-scope[parse each file individually before combining for multifile documents]' \
+ '--sandbox=-[run in a sandbox, limiting IO operations]::enable:(true false)' \
{\*-F+,\*--filter=}'[specify an executable to be used as a filter transforming the pandoc AST after the input is parsed and before the output is written]: :_pandoc_filter' \
{\*-L+,\*--lua-filter=}"[transform the document by using pandoc's built-in lua filtering system]: :_pandoc_lua_filter" \
{\*-M+,\*--metadata=}'[set the metadata field KEY to the value VALUE]:key\:value: ' \
'*--metadata-file=[read metadata from file]:YAML or JSON file:_files' \
{-p,--preserve-tabs}'[preserve tabs instead of converting them to spaces]' \
'--tab-stop=[specify the number of spaces per tab]:spaces [4]' \
- '--track-changes=[specifies what to do with insertions, deletions, and comments produced by the MS Word "Track Changes" feature]: :_pandoc_track_changes' \
+ '--track-changes=[specify what to do with insertions, deletions, and comments produced by the MS Word "Track Changes" feature]: :_pandoc_track_changes' \
'--extract-media=[extract media in source document to specified directory]:directory:_files -/' \
- '--abbreviations=[specifies a custom abbreviations file]:file:_files ' \
+ '--abbreviations=[specify a custom abbreviations file]:file:_files ' \
{-s,--standalone}'[produce output with an appropriate header and footer]' \
- '--template=[use FILE as a custom template for the generated document. Implies --standalone]: :_pandoc_template' \
+ '--template=[use specified file as a custom template for the generated document. Implies --standalone]: :_pandoc_template' \
{\*-V+,\*--variable=}'[set the variable KEY to the value VALUE]:key\:value: ' \
'(- :)'{-D+,--print-default-template=}'[print the system default template for an output]:format:( $(pandoc --list-output-formats) )' \
'(- :)--print-default-data-file=[print a system default data file]:file: ' \
@@ -211,43 +205,48 @@ _arguments -s \
{--toc,--table-of-contents}'[include an automatically generated table of contents]' \
'--toc-depth=[specify the number of section levels to include in the table of contents]:number' \
'--strip-comments[strip out HTML comments in the Markdown or Textile source]' \
- '--no-highlight[disables syntax highlighting for code blocks and inlines]' \
- '--highlight-style=[specifies the coloring style to be used in highlighted source code]:style|file:_pandoc_highlight_style' \
+ '--no-highlight[disable syntax highlighting for code blocks and inlines]' \
+ '--highlight-style=[specify coloring style to be used in highlighted source code]: :_pandoc_highlight_style' \
'(- :)--print-highlight-style=[prints a JSON version of a highlighting style]: :_pandoc_highlight_style' \
'--syntax-definition=[load a KDE XML syntax definition file]:file:_files -g "*.xml(-.)"' \
- {\*-H+,\*--include-in-header=}'[include contents of FILE, verbatim, at the end of the header, implies --standalone]:file:_files' \
- {\*-B+,\*--include-before-body=}'[include contents of FILE, verbatim, at the beginning of the document body, implies --standalone]:file:_files' \
- {\*-A+,\*--include-end-body=}'[include contents of FILE, verbatim, at the end of the document body, implies --standalone]:file:_files' \
+ \*{-H+,--include-in-header=}'[include contents of file, verbatim, at the end of the header, implies --standalone]:file:_files' \
+ \*{-B+,--include-before-body=}'[include contents of file, verbatim, at the beginning of the document body, implies --standalone]:file:_files' \
+ \*{-A+,--include-end-body=}'[include contents of file, verbatim, at the end of the document body, implies --standalone]:file:_files' \
'--resource-path=[list of paths to search for images and other resources]:searchpath:_dir_list' \
'--request-header=[set the request header NAME to the value VAL when making HTTP requests]:name\:val: ' \
'--no-check-certificate[disable the certificate verification]' \
'--self-contained[produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Implies --standalone]' \
+ '--embed-resources=-[produce a standalone HTML document with no external dependencies]::enable:(true false)' \
'--html-q-tags[use <q> tags for quotes in HTML]' \
'--ascii[use only ASCII characters in output, supported only for HTML and DocBook output]' \
'--reference-links[use reference-style links, rather than inline links]' \
'--reference-location=[specify where footnotes (and references, if reference-links is set) are placed (block|section|document)]: :_pandoc_reference_location' \
'--markdown-headings[specify style for level1 and 2 headings in markdown output]:style [atx]:(setext atx)' \
- '!--atx-headers[use ATX-style headers in Markdown and AsciiDoc output]' \
- '--top-level-division=[treat top-level headers as the given division type in LaTeX, ConTeXt, DocBook, and TEI output]: :_pandoc_top_level_division' \
+ '--list-tables=-[render tables as list tables in RST output]::enable(true false)' \
+ '--top-level-division=[treat top-level headers as given division type in LaTeX, ConTeXt, DocBook and TEI output]:top level division:(default section chapter part)' \
{-N,--number-sections}'[number section headings in LaTeX, ConTeXt, HTML, or EPUB output]' \
- '--number-offset=[offset for section headings in HTML output (ignored in other output formats)]:number[number,...] [0]' \
+ '--number-offset=[specify offset for section headings in HTML output (ignored in other output formats)]:number[number,...] [0]' \
'--listings[use the listings package for LaTeX code blocks]' \
{-i,--incremental}'[make list items in slide shows display incrementally (one by one)]' \
- '--slide-level=[specifies that headers with the specified level create slides (for beamer, s5, slidy, slideous, dzslides)]:slide level:(1 2 3 4 5 6)' \
- '--section-divs[wrap sections in <section> tags (or <div> tags for html4)Use the section-divs package for LaTeX code blocks]' \
- '--email-obfusication=[treat top-level headers as the given division type in LaTeX, ConTeXt, DocBook, and TEI output (none|javascript|references)]: :_pandoc_email_obfusication' \
+ '--slide-level=[divide into slides for headers above the specified level (for beamer, s5, slidy, slideous, dzslides)]: :_pandoc_header_levels' \
+ '--section-divs[wrap sections in <section> tags (or <div> tags for html4)]' \
+ '--email-obfusication=[specify method for obfusicating mailto: links in HTML documents]: :_pandoc_email_obfusication' \
'--id-prefix=[specify a prefix to be added to all identifiers and internal links in HTML and DocBook output]:string: ' \
{-T+,--title-prefix=}'[specify STRING as a prefix at the beginning of the title that appears in the HTML header]:string: ' \
{\*-c+,\*--css=}'[link to a CSS style sheet]: :_urls' \
- '--reference-doc=[use the specified file as a style reference in producing a docx or ODT file]:file: ' \
+ '--reference-doc=[use specified file as a style reference in producing a docx or ODT file]:file:_files' \
'--epub-subdirectory=[specify the subdirectory in the OCF container that is to hold the EPUB-specific contents]:directory:_files -/' \
'--epub-cover-image=[use the specified image as the EPUB cover]:file:_files' \
+ '--epub-title-page=-[determine whether title page is included in EPUB]::enable [true]:(true false)' \
'--epub-metadata=[look in the specified XML file for metadata for the EPUB]:file:_files -g "*.xml(-.)"' \
'*--epub-embed-font=[embed the specified font in the EPUB]:file:_files ' \
+ '--split-level=[specify heading level at which to split an EPUB or chunked HTML into separate files]:heading level' \
+ '--chunk-template=[specify filename template for a chunked html document]:template' \
'--epub-chapter-level=[specify the header level at which to split the EPUB into separate "chapter" files]:number:(1 2 3 4 5 6)' \
'--ipynb-output=[specify how to tread ipynb output cells]:method:(all none best)' \
- '--pdf-engine=[use the specified engine when producing PDF output]:program:_pandoc_pdf_engine' \
- '*--pdf-engine-opt=[use the given string as a command-line argument to the pdf-engine]:string:_pandoc_pdf_engine_opts' \
+ '--pdf-engine=[use specified engine when producing PDF output]:program:_pandoc_pdf_engine' \
+ '*--pdf-engine-opt=[use given string as a command-line argument to the pdf-engine]:string:_pandoc_pdf_engine_opts' \
+ '(-C --citeproc)'{-C,--citeproc}'[process citations]' \
"*--bibliography=[set the bibliography field in the document's metadata to specified file]:file:_files -g '*.(bib|bibtex|copac|json|yaml|enl|xml|wos|medline|mods|ris)(-.)'" \
"--csl=[set the csl field in the document's metadata to specified file]:file:_files -g '*.csl(-.)'" \
'--citation-abbreviations=[set the citation-abbreviations field in the document'"'"'s metadata to FILE]:file:_files' \
@@ -257,10 +256,10 @@ _arguments -s \
'--webtex=[convert TeX formulas to <img> tags that link to an external script that converts formulas to images]:: :_urls' \
'--mathjax=[use MathJax to display embedded TeX math in HTML output]:: :_urls' \
'--katex=[use KaTeX to display embedded TeX math in HTML output]:: :_urls' \
- '--gladtex[Enclose TeX math in <eq> tags in HTML output]' \
+ '--gladtex[enclose TeX math in <eq> tags in HTML output]' \
'--trace[enable tracing]' \
- '--dump-args[print information about command-line arguments to stdout, then exit]' \
- '--ignore-args[ignore command-line arguments (for use in wrapper scripts)]' \
+ '!--dump-args' \
+ '!--ignore-args' \
'--verbose[give verbose debugging output]' \
'--quiet[suppress warning messages]' \
'--fail-if-warnings[exit with error status if there are any warnings]' \
@@ -271,6 +270,7 @@ _arguments -s \
'(- :)--list-extensions=[list supported extensions, one per line, preceded by a + or - indicating whether it is enabled by default in FORMAT]:format:_pandoc_all_formats' \
'(- :)--list-highlight-languages[list supported languages for syntax highlighting, one per line]' \
'(- :)--list-highlight-styles[list supported styles for syntax highlighting, one per line]' \
+ '(- :)--print-highlight-style=[print JSON version of a highlighting style]: :_pandoc_highlight_style' \
'(- :)'{-v,--version}'[print version]' \
'(- :)'{-h,--help}'[print help]' \
'*:file:_files'
diff --git a/Completion/Unix/Command/_perl b/Completion/Unix/Command/_perl
index d7e8f1b51..1631560ce 100644
--- a/Completion/Unix/Command/_perl
+++ b/Completion/Unix/Command/_perl
@@ -17,6 +17,7 @@ _perl () {
'(1 -e)*-E+[like -e but enable all optional features]:one line of program' \
'-f[disable executing $Config{sitelib}/sitecustomize.pl at startup]' \
'-F-[split() pattern for autosplit (-a)]:split() pattern, // is optional' \
+ '-g[read all input in one go (slurp), rather than line-by-line (alias for -0777)]' \
'-h[list help summary]' \
'-i-[edit <> files in place (make backup if extension supplied)]:backup file extension: ' \
'*-I-[specify @INC/#include directory (may be used more than once)]:include path:_files -/' \
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 9c3ddf039..94c1dae1a 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -34,6 +34,7 @@ arguments=(
'(-P --parent)'{-P+,--parent=}'[match only on specified parent process IDs]: :->ppid'
'(-l)-q[suppress normal output]'
'(-r --runstates)'{-r+,--runstates}'[match runstates]:run state:compadd -S "" D I R S T t W X Z'
+ '(-A --ignore-ancestors)'{-A,--ignore-ancestors}'[exclude our ancestors from results]'
'-S[search also in system processes (kernel threads)]'
'(-s --session)'{-s+,--session=}'[match only on specified process session IDs]: :->sid'
# _signals is OK here - we do it differently below
@@ -44,6 +45,7 @@ arguments=(
'(-u --euid)'{-u+,--euid=}'[match only on specified effective user IDs]: :_sequence _users'
'(-v --inverse)'{-v,--inverse}'[negate matching]'
'(-x --exact)'{-x,--exact}'[match process name or command line (with -f) exactly]'
+ '--cgroup=[match by cgroup v2 names]:cgroup'
'--ns=[match only on same namespaces as specified PID]: :_pids'
'--nslist=[match only on specified namespaces (with --ns)]:namespace:(ipc mnt net pid user uts)'
'(: * -)'{-V,--version}'[display version information]'
@@ -55,6 +57,8 @@ arguments=(
'(-w --lightweight)'{-w,--lightweight}'[show all thread IDs instead of PID]'
)
[[ $service == pkill ]] && arguments+=(
+ '(-H --require-handler)'{-H,--require-handler}'[match only if signal handler is present]'
+ '(-q --queue)'{-q+,--queue=}'[specify value to be sent with the signal]:value'
'(-e --echo)'{-e,--echo}'[display signalled process]'
'-l[display kill command]'
)
@@ -62,8 +66,8 @@ arguments=(
case $OSTYPE in
linux*)
# Note: We deliberately exclude -v but not --inverse from pkill
- pgopts=acdFfGghLlnoOPrstUuVvwx-
- pkopts=ceFfGghLnoOPstUuVx-
+ pgopts=AacdFfGghLlnoOPrstUuVvwx-
+ pkopts=AceFfGgHhLnoOPstUuVx-
arguments=(
${arguments:#((#s)|*\))(\*|)-[acl]*}
'(-c --count)'{-c,--count}'[display count of matching processes]'
diff --git a/Completion/Unix/Command/_ping b/Completion/Unix/Command/_ping
index d36a0f3a9..84bd76b82 100644
--- a/Completion/Unix/Command/_ping
+++ b/Completion/Unix/Command/_ping
@@ -199,7 +199,9 @@ case ${variant}:${${service#ping}:-4} in
'-A[adaptive]'
'-b[allow pinging a broadcast address]'
"-B[don't allow ping to change source address]"
+ '-C[call connect() syscall on socket creation]'
'-D[print timestamp before each line]'
+ '-e+[define identifier for ping session]:identifier'
'(-4)-F+[allocate and set 20-bit flow label]:flow label (hex)'
'(-)-h[show usage information]'
'-I+[specify source interface]:interface:_net_interfaces'
diff --git a/Completion/Unix/Command/_ps b/Completion/Unix/Command/_ps
index 905309a12..c3dfae47d 100644
--- a/Completion/Unix/Command/_ps
+++ b/Completion/Unix/Command/_ps
@@ -163,10 +163,12 @@ case $OSTYPE in
'(-N --deselect)'{-N,--deselect}'[negate selection: all processes except those selected]'
'*-C[select processes by command name]:command:_sequence -s , _command_names -e'
'*--ppid[select processes by parent process ID]:parent process:_sequence -S , _pids'
+ '(-D --date-format)'{-D,--date-format=}'[set the date format of the lstart field to format]:format:_strftime'
'(-f)-F[extra full format listing]'
'--context[show SELinux security context format]'
'-M[show security data]'
'(--forest -H)'{--forest,-H}'[show process hierarchy]'
+ '-P[add psr column]'
'--headers[repeat header lines, one per page of output]'
'(--cols --columns --width)'{--cols,--columns,--width}'[set screen width]:width'
'(--lines --rows)'{--lines,--rows}'[set screen height]'
diff --git a/Completion/Unix/Command/_pv b/Completion/Unix/Command/_pv
index d02d3a35d..b21625650 100644
--- a/Completion/Unix/Command/_pv
+++ b/Completion/Unix/Command/_pv
@@ -17,7 +17,9 @@ _arguments -s -S $args \
'(-I --fineta -F --format)'{-I,--fineta}'[show absolute estimated time of arrival]' \
'(-r --rate -F --format)'{-r,--rate}'[show data transfer rate counter]' \
'(-a --average-rate -F --format)'{-a,--average-rate}'[show data transfer average rate counter]' \
- '(-b --bytes -F --format)'{-b,--bytes}'[show number of bytes transferred]' \
+ '(-m --average-rate-window)'{-m+,--average-rate-window=}'[compute average rate over period]:duration (seconds) [30]' \
+ '(-b --bytes -8 --bits -F --format)'{-b,--bytes}'[show number of bytes transferred]' \
+ '(-8 --bits -b --bytes -F --format)'{-8,--bits}'[show number of bits transferred]' \
'(-T --buffer-percent -F --format)'{-T,--buffer-percent}'[show percentage of transfer buffer in use]' \
'(-A --last-written -F --format)'{-A+,--last-written=}'[show number of bytes last written]:number (bytes)' \
'(-F --format -p --progress -t --timer -e --eta -I --fineta -r --rate -a --average-rate -b --bytes -T --buffer-percent -A --last-written -F --format)'{-F+,--format=}'[set output format]:format:->formats' \
diff --git a/Completion/Unix/Command/_readelf b/Completion/Unix/Command/_readelf
index fc0fb7ce1..b3abdf0a5 100644
--- a/Completion/Unix/Command/_readelf
+++ b/Completion/Unix/Command/_readelf
@@ -16,10 +16,12 @@ args=(
'(-V --version-info)'{-V,--version-info}'[show version sections (if present)]'
'(-A --arch-specific)'{-A,--arch-specific}'[show architecture specific information (if any)]'
'(-c --archive-index)'{-c,--archive-index}'[show symbol/file index in an archive]'
+ '(-D --use-dynamic)'{-D,--use-dynamic}'[use dynamic section info when showing symbols]'
\*{-x,--hex-dump=}"[dump contents of specified section as bytes]:section:($sections)"
\*{-p,--string-dump=}"[dump contents of specified section as strings]:section:($sections)"
- '-w+[show the contents of DWARF2 debug sections]::debug section:(l L i a p r m f F s o O R t U u T g A c k K)'
- '--debug-dump=[show the contents of DWARF2 debug sections]::section:(rawline decodedline info abbrev pubnames aranges macro frames frames-interp str loc Ranges pubtypes gdb_index trace_info trace_abbrev trace_aranges addr cu_index links follow-links)'
+ '-w+[show the contents of DWARF2 debug sections]::debug section:(a A r c L f F g i o m p t R l s O u T U k K N)'
+ '--debug-dump=[show the contents of DWARF2 debug sections]::section:(abbrev addr aranges cu_index decodedline frames frames-interp gdb_index info loc macro pubnames pubtypes Ranges rawline str str-offsets trace_abbrev trace_aranges trace_info links follow-links no-follow-links)'
+ '(-P --process-links)'{-P,--process-links}'[display the contents of non-debug sections in separate debuginfo files]'
'(-I --histogram)'{-I,--histogram}'[show histogram of bucket list lengths]'
'(-W --wide)'{-W,--wide}'[allow output width to exceed 80 characters]'
'(- *)'{-H,--help}'[display help information]'
@@ -35,7 +37,6 @@ case $variant in
'(-s --syms --symbols)'{-s,--syms,--symbols}'[show symbol table]'
'(-n --notes)'{-n,--notes}'[show core notes (if present)]'
'(-u --unwind)'{-u,--unwind}'[show unwind info (if present)]'
- '(-D --use-dynamic)'{-D,--use-dynamic}'[use dynamic section info when showing symbols]'
)
;|
elfutils|binutils)
@@ -50,11 +51,14 @@ case $variant in
;|
binutils)
args+=(
+ '--sym-base=[force base for symbol sizes]:base:(0 8 10 16)'
'!(-C --demangle)--no-demangle'
'(--demangle)-C[decode symbol names]'
- '(-C)--demangle=-[decode symbol names]::style [auto]:(auto gnu lucid arm hp edg gnu-v3 java gnat)'
+ '(-C)--demangle=-[decode symbol names]::style [auto]:(none auto gnu-v3 java gnat dlang rust)'
'!(--no-recurse-limit)--recurse-limit'
'--no-recurse-limit[disable demangling recursion limit]'
+ '-U+[specify how to display unicode characters]:method:(d l e x h i)'
+ '--unicode=[specify how to display unicode characters]:method:(default locale escape hex highlight invalid)'
'(-L --lint --enable-checks)'{-L,--lint,--enable-checks}'[display warning messages for possible problems]'
\*{-R,--relocated-dump=}"[dump contents of specified section as relocated bytes]:section:($sections)"
"--dwarf-depth=[don't show DIEs at greater than specified depth]:depth"
@@ -63,6 +67,7 @@ case $variant in
'--ctf-parent=[use specified section as the CTF parent]:section'
'--ctf-symbols=[use specified section as the CTF external symbol table]:section'
'--ctf-strings=[use specified section as the CTF external string table]:section'
+ '--sframe=-[display SFrame info from section]::section name [.sframe]'
'(-T --silent-truncation)'{-T,--silent-truncation}"[if a symbol name is truncated, don't add ... suffix]"
)
;;
diff --git a/Completion/Unix/Command/_rsync b/Completion/Unix/Command/_rsync
index eb906e974..c65266dbd 100644
--- a/Completion/Unix/Command/_rsync
+++ b/Completion/Unix/Command/_rsync
@@ -141,8 +141,9 @@ _rsync() {
'(-X --xattrs)'{-X,--xattrs}'[preserve extended attributes]' \
'--fake-super[use xattrs to save all file attributes]' \
'(-d --dirs)'{-d,--dirs}'[transfer directories without recursing]' \
- {--no-d,--no-dirs}'[turn off --dirs]' \
- "--mkpath[create the destination's path component]" \
+ '(--no-d --no-dirs)'{--no-d,--no-dirs}'[turn off --dirs]' \
+ '(--old-dirs --old-d)'{--old-dirs,--old-d}'[work like --dirs when talking to old rsync]' \
+ "--mkpath[create destination's missing path components]" \
'(-l --links)'{-l,--links}'[copy symlinks as symlinks]' \
{--no-l,--no-links}'[turn off --links]' \
'(-L --copy-links)'{-L,--copy-links}'[transform symlinks into referent file/dir]' \
@@ -161,8 +162,10 @@ _rsync() {
'(-g --group)'{-g,--group}'[preserve group]' \
{--no-g,--no-group}'[turn off --group]' \
'(--devices --specials)-D[same as --devices --specials]' \
- '(-D)--devices[preserve devices]' \
+ '(-D --copy-devices --write-devices)--devices[preserve devices]' \
'--no-devices[turn off --devices]' \
+ '(-D --devices)--copy-devices[copy device contents as a regular file]' \
+ '(-D --devices)--write-devices[write to devices as files (implies --inplace)]' \
'(-D)--specials[preserve special files]' \
'--no-specials[turn off --specials]' \
'--no-D[turn off --devices and --specials]' \
@@ -179,7 +182,7 @@ _rsync() {
'(-n --dry-run)'{-n,--dry-run}'[show what would have been transferred]' \
'(-W --whole-file)'{-W,--whole-file}'[copy files whole (without delta-transfer algorithm)]' \
{--no-W,--no-whole-file}'[turn off --whole-file]' \
- '(--cc --checksum-choice)'{--cc,--checksum-choice}'=[choose the checksum algorithms]:algorithm:_sequence -n 2 compadd - auto md4 md5 none' \
+ '(--cc --checksum-choice)'{--cc,--checksum-choice}'=[choose the checksum algorithms]:algorithm:_sequence -n 2 compadd - auto xxh128 xxh3 xxh64 xxhash md4 md5 sha1 none' \
'(-x --one-file-system)'{-x,--one-file-system}"[don't cross filesystem boundaries]" \
'(-B --block-size)'{-B+,--block-size=}'[force a fixed checksum block-size]: :_numbers -f -u bytes -d 1g "block size" B K M G T P' \
'(-e --rsh)'{-e+,--rsh=}'[specify the remote shell to use]:remote-shell command:(rsh ssh)' \
@@ -233,7 +236,8 @@ _rsync() {
'*--include=[do not exclude files matching pattern]:pattern' \
'--files-from=[read list of source-file names from specified file]:file:_files' \
'(-0 --from0)'{-0,--from0}'[all *-from file lists are delimited by nulls]' \
- '(-s --protect-args)'{-s,--protect-args}'[no space-splitting; only wildcard special-chars]' \
+ '(-s --secluded-args)'{-s,--secluded-args}'[use the protocol to safely send arguments]' \
+ "--trust-sender[trust the remote sender's file list]" \
'--copy-as=[specify user & optional group for the copy]:user:_rsync_users_groups' \
'--version[print version number]' \
'*'{-h,--human-readable}'[output numbers in a human-readable format]' \
@@ -251,6 +255,7 @@ _rsync() {
'--list-only[list the files instead of copying them]' \
'--stop-after=[stop copying after specified time has elapsed]:time (minutes)' \
'--stop-at=[stop copying when specified point in time is reached]:date/time (YYYY-MM-DDTHH\:MM):_dates -F -S "T"' \
+ '--fsync[fsync every written file]' \
'(--only-write-batch)--write-batch=[write a batched update to the specified file]:file:_files' \
'(--write-batch)--only-write-batch=[like --write-batch but w/o updating destination]:file:_files' \
'--protocol=[force an older protocol version to be used]:number' \
diff --git a/Completion/Unix/Command/_samba b/Completion/Unix/Command/_samba
index 6c7a64e18..a36130cf9 100644
--- a/Completion/Unix/Command/_samba
+++ b/Completion/Unix/Command/_samba
@@ -5,16 +5,29 @@ local -a state line expl msgs args ign
(( CURRENT == 2 )) || ign='!'
args=(
+ '--debug-stdout[send debug output to stdout]'
'(-d --debuglevel)'{-d+,--debuglevel=}'[set debug level]:debug level (1..10) [1]'
'(-s --configfile)'{-s+,--configfile=}'[specify alternate smb.conf file]:config file:_files'
'(-l --log-basename)'{-l+,--log-basename=}'[specify base name for log files]:base name:_files'
'*--option=[set smb.conf option from command line]:option=value'
+ '--leak-report[enable talloc leak reporting on exit]'
+ '--leak-report-full[enable full talloc leak reporting on exit]'
"${ign}(1 2 3 -)"{-\?,--help}'[display usage information]'
"${ign}(1 2 3 -)--usage[display brief usage information]"
"${ign}(1 2 3 - *)"{-V,--version}'[display version information]'
)
case $service in
+ smbclient|nmblookup)
+ args+=(
+ '(2 -R --name-resolve)'{-R+,--name-resolve=}'[specify name resolution order]:name resolution order:_values -s " " "name resolution order" lmhosts host wins bcast'
+ '(-m --max-protocol)'{-m+,--max-protocol=}'[set the max protocol level]:level'
+ '(2 -O --socket-options)'{-O+,--socket-options=}'[specify socket options]:socket options'
+ '(2)--netbios-scope=[specify NetBIOS scope]:scope'
+ '(2 -W --workgroup)'{-W+,--workgroup=}'[specify workgroup name]:workgroup name'
+ '--realm=[set the realm name]:realm'
+ )
+ ;|
smbcontrol)
_arguments -C -S $args \
'(-t --timeout)'{-t+,--timeout=}'[set timeout]:timeout (seconds)' \
@@ -42,12 +55,10 @@ case $service in
smbclient)
args+=(
'(-N -A)2: :_guard "^-*" password'
- '(2 -R --name-resolve)'{-R+,--name-resolve=}'[specify name resolution order]:name resolution order:_values -s " " "name resolution order" lmhosts host wins bcast'
'(2 -M --message -L --list -D --directory -T --tar)'{-M+,--message=}'[send message]:host:_hosts'
'(2 -I --ip-address)'{-I+,--ip-address=}'[specify IP address of server]:IP address'
'(2 -E --stderr)'{-E,--stderr}'[output messages to stderr]'
'(2 -M --message -D --directory -T --tar)'{-L+,--list=}'[list services on server]:host:_hosts'
- '(-m --max-protocol)'{-m+,--max-protocol=}'[set the max protocol level]:level'
'(2 -T --tar -M --message -L --list)'{-T+,--tar=}'[specify tar options]:tar options'
'(2 -D --directory -M --message -L --list)'{-D+,--directory=}'[specify initial directory]:initial directory'
'(2 -c --command)'{-c,--command=}'[specify commands]:command string'
@@ -58,19 +69,18 @@ case $service in
'(-q --quiet)'{-q,--quiet}'[suppress help message]'
'(-B --browse)'{-B,--browse}'[browse SMB servers using DNS]'
'(2 -d --debuglevel)'{-d+,--debuglevel=}'[specify debug level]:debug level:(0 1 2 3 4 5 6 7 8 9 10)'
- '(2 -O --socket-options)'{-O+,--socket-options=}'[specify socket options]:socket options'
'(2 -n --netbiosname)'{-n+,--netbiosname=}'[specify local NetBIOS name]:local machine name'
- '(2 -W --workgroup)'{-W+,--workgroup=}'[specify workgroup]:workgroup'
- '(2 -i --scope)'{-i+,--scope=}'[specify NetBIOS scope]:scope'
'(2 -U --user)'{-U+,--user=}'[specify username]:username:_users'
'(2 -N --no-pass)'{-N,--no-pass}'[suppress password prompt]'
- '(-k --kerberos)'{-k,--kerberos}'[use kerberos (active directory) authentication]'
+ '--pw-nt-hash[the supplied password is the NT hash]'
'(2 -A --authentication-file)'{-A+,--authentication-file=}'[specify file containing username/password]:file:_files'
- '(-S --signing)'{-S+,--signing=}'[set the client signing state]:state:(on off required)'
'(-P --machine-pass)'{-P,--machine-pass}'[use stored machine account password]'
- '(-e --encrypt)'{-e,--encrypt}'[encrypt SMB transport]'
- '(-C --use-ccache)'{-C,--use-ccache}'[use the winbind ccache for authentication]'
- '--pw-nt-hash[the supplied password is the NT hash]'
+ '--simple-bind-dn=[specify DN to use for a simple bind]:DN'
+ '--use-kerberos=[use Kerberos authentication]:state:(desired required off)'
+ '--use-krb5-ccache=[specify credentials cache location for Kerberos]:file:_files'
+ '--use-winbind-ccache[use the winbind ccache for authentication]'
+ '--client-protection=[configure protection used for client connections]:protection:(sign encrypt off)'
+ '!(--use-kerberos)'{-k,--kerberos}
)
(( CURRENT == 2 )) && args+=( '1:service name:_hosts -P // -S /' )
_arguments -s -S $args
@@ -81,16 +91,13 @@ case $service in
'(-f --flags)'{-f,--flags}'[list NMB flags returned]' \
'(-U --unicast)'{-U+,--unicast=}'[specify unicast address]:unicast address' \
'(-M --master-browser)'{-M,--master-browser}'[search for a master browser]' \
- '(-R --recursion)'{-R,--recursion}'[set recursion desired in packet]' \
+ '--recursion[set recursion desired in packet]' \
'(-S --status)'{-S,--status}'[lookup node status as well]' \
'(-T --translate)'{-T,--translate}'[perform reverse DNS on IP addresses]' \
'(-r --root-port)'{-r,--root-port}'[use root port 137]' \
'(-A --lookup-by-ip)'{-A,--lookup-by-ip}'[query node status on IP address]' \
'(-d --debuglevel)'{-d+,--debuglevel=}'[specify debug level]:debug level:(0 1 2 3 4 5 6 7 8 9 10)' \
- '(-O --socket-options)'{-O+,--socket-options=}'[specify socket options to use]:socket option' \
'(-n --netbiosname)'{-n+,--netbiosname=}'[specify primary netbios name]:netbios name' \
- '(-W --workgroup)'{-W+,--workgroup=}'[specify workgroup name]:workgroup name' \
- '(-i --scope)'{-i+,--scope=}'[specify NetBIOS scope]:scope' \
'(h)*:NetBIOS name:_hosts'
;;
smbstatus)
diff --git a/Completion/Unix/Command/_sqlite b/Completion/Unix/Command/_sqlite
index 6425732f1..6f0b1de94 100644
--- a/Completion/Unix/Command/_sqlite
+++ b/Completion/Unix/Command/_sqlite
@@ -12,7 +12,7 @@ dashes=( '' )
options=(
'(-init --init)'$^dashes'-init[startup file]:file containing SQLite commands:_files'
- $^dashes'-echo[echo commands]'
+ $^dashes'-echo[print inputs before execution]'
)
exclusive=( {,-}-{no,}header )
@@ -72,12 +72,14 @@ if [[ -n $words[(r)-A*] ]]; then
'(1 -a --append -f --file)'{-f+,--file=}'[specify archive file]:archive file:_files'
'(1 -a --append -f --file)'{-a,--append=}'[operate on specified file opened using the apndvfs VFS]:archive file:_files'
'(-C --directory)'{-C+,--directory=}'[change to specified directory to read/extract files]:directory:_directories'
+ '(-g --glob)'{-g,--glob}'[use glob matching for names in archive]'
'(-n --dryrun)'{-n,--dryrun}'[show the SQL that would have occurred]'
'*:file:_files'
+ '(commands)' \
'(-c --create)'{-c,--create}'[create a new archive]'
'(-u --update)'{-u,--update}'[update or add files to an existing archive]'
'(-i --insert)'{-i,--insert}'[like -u but always add even if mtime unchanged]'
+ '(-r --remove)'{-r,--remove}'[remove files from archive]'
'(-t --list)'{-t,--list}'[list contents of archive]'
'(-x --extract)'{-x,--extract}'[extract files from archive]'
)
diff --git a/Completion/Unix/Command/_strip b/Completion/Unix/Command/_strip
index 3e1a6b698..cc67ae49a 100644
--- a/Completion/Unix/Command/_strip
+++ b/Completion/Unix/Command/_strip
@@ -1,55 +1,68 @@
#compdef strip
-local curcontext=$curcontext state line ret=1
+local curcontext=$curcontext state line variant ret=1
declare -A opt_args
declare -a args
-if _pick_variant gnu=GNU solaris --version; then
- if [[ -prefix @* ]]; then
- compset -P '@'
+if _pick_variant -r variant gnu=GNU elftoolchain=elftoolchain $OSTYPE --version; then
+ case $variant in
+ gnu|elftoolchain)
+ args=(
+ '(-g -S -d --strip-debug)'{-g,-S,-d,--strip-debug}'[remove debugging symbols]'
+ '(-I --input-target)'{-I+,--input-target=}'[object code format of input]:bfd name:->bfdnames'
+ '*'{-K+,--keep-symbol=}'[keep given symbol]:symbol name'
+ '*'{-N+,--strip-symbol=}'[strip given symbol]:symbol name'
+ '(-O --output-target)'{-O+,--output-target=}'[object code format of output]:bfd name:->bfdnames'
+ '(-p --preserve-dates)'{-p,--preserve-dates}'[preserve access and modification dates]'
+ '*'{-R+,--remove-section=}'[remove given sections]:section name'
+ '(-s --strip-all)'{-s,--strip-all}'[remove all symbols]'
+ '(-w --wildcard)'{-w,--wildcard}'[permit wildcards in symbol names]'
+ '(-X --discard-locals)'{-X,--discard-locals}'[remove compiler-generated local symbols]'
+ '(-x --discard-all)'{-x,--discard-all}'[remove non-global symbols]'
+ '--only-keep-debug[remove everything except debugging information]'
+ '--strip-unneeded[remove symbols not needed for relocation processing]'
+ '(- 1 *)'{-V,--version}'[display version information and exit]'
+ )
+ ;|
+ gnu)
+ if [[ -prefix @* ]]; then
+ compset -P '@'
- local expl
+ local expl
- _description files expl 'command-line-options file'
- _files "$expl[@]"
- return
- fi
- args=(
- '(-F --target)'{-F+,--target=}'[object code format to use]:bfd name:->bfdnames'
- '(-)--help[display usage information]'
- '(-)--info[display list of architectures and object formats]'
- '(-I --input-target)'{-I+,--input-target=}'[object code format of input]:bfd name:->bfdnames'
- '(-O --output-target)'{-O+,--output-target=}'[object code format of output]:bfd name:->bfdnames'
- '(-D --enable-deterministic-archives -U --disable-deterministic-archives)'{-U,--disable-deterministic-archives}'[disable -D behavior]'
- '(-D --enable-deterministic-archives -U --disable-deterministic-archives)'{-D,--enable-deterministic-archives}'[produce deterministic output when stripping archives (zero file metadata)]'
- '*'{-R+,--remove-section=}'[remove given sections]:section name'
- '--remove-relocations=[remove relocations from specified section]:section'
- '(-s --strip-all)'{-s,--strip-all}'[remove all symbols]'
- '(-g -S -d --strip-debug)'{-g,-S,-d,--strip-debug}'[remove debugging symbols]'
- '--strip-dwo[remove all DWARF .dwo sections]'
- '--strip-unneeded[remove symbols not needed for relocation processing]'
- '!(--no-merge-notes)'{-M,--merge-notes}
- "--no-merge-notes[don't attempt to remove redundant notes]"
- '*'{-K+,--keep-symbol=}'[keep given symbol]:symbol name'
- '*'{-N+,--strip-symbol=}'[strip given symbol]:symbol name'
- "*--keep-section=[don't strip given section]:section"
- '(*)-o+[output file]:output file:_files'
- '(-p --preserve-dates)'{-p,--preserve-dates}'[preserve access and modification dates]'
- '(-w --wildcard)'{-w,--wildcard}'[permit wildcards in symbol names]'
- '(-x --discard-all)'{-x,--discard-all}'[remove non-global symbols]'
- '(-X --discard-locals)'{-X,--discard-locals}'[remove compiler-generated local symbols]'
- '--keep-file-symbols[retain symbols specifying source file names]'
- '--only-keep-debug[remove everything except debugging information]'
- '(-)'{-V,--version}'[display version information and exit]'
- '(-v --verbose)'{-v,--verbose}'[list all object files modified or members of archives]')
-else
- case $OSTYPE in
+ _description files expl 'command-line-options file'
+ _files "$expl[@]"
+ return
+ fi
+ args+=(
+ '(-F --target)'{-F+,--target=}'[object code format to use]:bfd name:->bfdnames'
+ '(-)--help[display usage information]'
+ '(-)--info[display list of architectures and object formats]'
+ '(-D --enable-deterministic-archives -U --disable-deterministic-archives)'{-U,--disable-deterministic-archives}'[disable -D behavior]'
+ '(-D --enable-deterministic-archives -U --disable-deterministic-archives)'{-D,--enable-deterministic-archives}'[produce deterministic output when stripping archives (zero file metadata)]'
+ '--remove-relocations=[remove relocations from specified section]:section'
+ '--strip-dwo[remove all DWARF .dwo sections]'
+ '!(--no-merge-notes)'{-M,--merge-notes}
+ "--no-merge-notes[don't attempt to remove redundant notes]"
+ "*--keep-section=[don't strip given section]:section"
+ '(*)-o+[output file]:output file:_files'
+ '--keep-section-symbols[retain section symbols]'
+ '--keep-file-symbols[retain symbols specifying source file names]'
+ '(-v --verbose)'{-v,--verbose}'[list all object files modified or members of archives]')
+ ;;
+ elftoolchain)
+ args+=(
+ '(- 1 *)'{-h,--help}'[display usage information]'
+ '(*)'{-o+,--output-file=}'[specify output file]:output file:_files'
+ )
+ ;;
solaris*)
args=(
'-l[strip line information only]'
'-V[display version information on stderr and exit]'
- '-x[do not strip the symbol table]')
- ;;
+ '-x[do not strip the symbol table]'
+ )
+ ;;
darwin*)
local -a arch
arch=( ${(z)${${"$(_call_program architectures
@@ -73,12 +86,13 @@ else
'-no_uuid[remove only LC_UUID load command]'
'-no_split_info[remove LC_SEGMENT_SPLIT_INFO load command]'
'-no_code_signature_warning[not warn when code signature would be invalid in the output]'
- '-arch[specify the architecture]:architecture:( $arch )' )
- ;;
+ '-arch[specify the architecture]:architecture:( $arch )'
+ )
+ ;;
esac
fi
-_arguments \
+_arguments -C \
$args \
'1:executable:_files -g "*(-*)"' \
'*::executable:_files -g "*(-*)"' && ret=0
diff --git a/Completion/Unix/Command/_tiff b/Completion/Unix/Command/_tiff
index ef12777de..1aeff3ff7 100644
--- a/Completion/Unix/Command/_tiff
+++ b/Completion/Unix/Command/_tiff
@@ -159,6 +159,7 @@ tiffinfo)
'-f+[force fill order]:fill order:(lsb2msb msb2lsb)' \
'-w[display raw data in words]' \
'-z[enable strip chopping]' \
+ '-M+[set the memory allocation limit]:limit (MiB), 0 for unlimited' \
'*:input TIFF file:_files -g "*.(#i)tif(|f)(-.)"' && ret=0
;;
tiffmedian)
@@ -172,6 +173,7 @@ tiffmedian)
;;
tiffsplit)
_arguments \
+ '-M+[set the memory allocation limit]:limit (MiB), 0 for unlimited' \
':input file:_files -g "*.(#i)tif(|f)(-.)"' \
':output file prefix' && ret=0
;;
diff --git a/Completion/Unix/Command/_truss b/Completion/Unix/Command/_truss
index b798f03cb..b69e174e6 100644
--- a/Completion/Unix/Command/_truss
+++ b/Completion/Unix/Command/_truss
@@ -16,7 +16,11 @@ args=(
case $OSTYPE in
solaris2.<11->)
- args+=( '(-c)-A[include absolute timestamps in output]' )
+ args+=(
+ '(-c)-A[include absolute timestamps in output]'
+ '-I[interpret system calls to well-known rather than underlying names]'
+ '-N[report only system calls that returned an error]'
+ )
;|
aix*|solaris*)
args+=(
diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin
index db1c977ad..d5a53af7c 100644
--- a/Completion/Unix/Command/_user_admin
+++ b/Completion/Unix/Command/_user_admin
@@ -12,7 +12,7 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
shells=( ${(M)commands:#*/(|[abckz]|tc|ba)sh} )
fi
args+=(
- '(-D -c --commend)'{-c+,--comment=}'[comment]:comment'
+ '(-D -c --comment)'{-c+,--comment=}'[comment]:comment'
'(-D -d --home -b --base-dir)'{-d+,--home=}"[specify home directory]:home directory:_directories -W /"
'(-D -e --expiredate)'{-e+,--expiredate}'[specify expiration date]:expiration date (YYYY-MM-DD)'
'(-D -f --inactive)'{-f+,--inactive=}'[specify inactive days]:inactive days'
@@ -41,6 +41,8 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK
)
args+=(
+ '--btrfs-subvolume-home[use BTRFS subvolume for home directory]'
+ '(-F --add-subids-for-system)'{-F,--add-subids-for-system}'[add entries to sub[ud]id even when adding a system user]'
'(-l --no-log-init)'{-l,--no-log-init}"[don't add user to lastlog and faillog databases]"
'(-m --create-home -M --no-create-home)'{-M,--no-create-home}"[don't create user's home directory, regardless of /etc/login.defs]"
'(-N --no-user-group -U --user-group)'{-N,--no-user-group}"[don't create a group with the same name as the user]"
@@ -103,6 +105,7 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
user:mod:linux*)
args+=(
'(-a --append)'{-a,--append}'[add user to supplementary groups without removing from other groups]'
+ '(-r --remove)'{-r,--remove}'[remove user from supplementary groups without removing from other groups]'
\*{-v,--add-subuids}'[add a range of subordinate uids]:uids (first-last)'
\*{-V,--del-subuids}'[remove a range of subordinate uids]:uids (first-last)'
\*{-w,--add-subgids}'[add a range of subordinate gids]:gids (first-last)'
@@ -118,9 +121,16 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
;|
user:*:linux*)
args+=(
+ '(-b --badname)'{-b,--badname}"[don't check for bad names]"
'(-U --unlock --lock -L -p)'{-L,--lock}"[lock user's password]"
'(-U --unlock --lock -L -p)'{-U,--unlock}"[unlock user's password]"
- '(-Z --selinux-user)'{-Z,--selinux-user}"[specify SELinux user for the user's login]:user"
+ '(-Z --selinux-user)'{-Z,--selinux-user}"[specify SELinux user for the user's login]:user:_selinux_users"
+ "--selinux-range[specify SELinux MLS range for the user's login]:range"
+ )
+ ;|
+ group:*:linux*)
+ args+=(
+ '(-U --users)'{-U+,--users=}'[specify users to add as members of the group]:user:_sequence _users'
)
;|
group:*)
@@ -164,6 +174,9 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
':group:_groups'
)
;|
+ group:mod:linux*)
+ args+=( '(-a --append)'{-a,--append}'[append the users mentioned by -U without removing existing members]' )
+ ;|
^*:linux*)
args=( ${(R)args:#(|\*)(|\(*\))--*} ) # remove long options
;|
diff --git a/Completion/Unix/Command/_vmstat b/Completion/Unix/Command/_vmstat
index e05bc88bc..6db776e62 100644
--- a/Completion/Unix/Command/_vmstat
+++ b/Completion/Unix/Command/_vmstat
@@ -8,7 +8,7 @@ case $OSTYPE in
'(-t --timestamp)'{-t,--timestamp}'[show timestamp]'
'(-n --one-header)'{-n,--one-header}'[do not redisplay header]'
'(-S --unit)'{-S+,--unit=}'[specify unit for displayed sizes]:unit prefix [K]:((k\:1000 K\:1024 m\:1000000 M\:1048576))'
- '(-C --full-cache)'{-C,--full-cache}'[add further cache lines to main cache]'
+ '(-y --no-first)'{-y,--no-first}'[skip first line of output]'
'1: :_guard "[0-9]#" "interval (seconds)"' '2:count'
+ '(action)' \
'(- :)'{-h,--help}'[display help information]'
diff --git a/Completion/Unix/Command/_vorbis b/Completion/Unix/Command/_vorbis
index 6c94469f9..fca218a51 100644
--- a/Completion/Unix/Command/_vorbis
+++ b/Completion/Unix/Command/_vorbis
@@ -32,7 +32,6 @@ case $service in
'(-q --quality)'{-q+,--quality=}'[set encoding quality]:quality:(0 1 2 3 4 5 6 7 8 9 10)' \
'--resample=[resample input to the given sample rate before encoding]:sample rate (Hz)' \
'--downmix[down mix input from stereo to mono]' \
- '--scale=[set input scaling factor]:scaling factor' \
'(-s --serial)'{-s+,--serial=}'[force a specific serial number in the output stream]:serial number' \
"--discard-comments[don't copy comments from FLAC file to output Ogg Vorbis file]" \
'--ignorelength[ignore the datalength in Wave headers]' \
@@ -74,10 +73,6 @@ case $service in
'(-q --quiet -v --verbose)'{--quiet,-q}'[quiet mode]' \
'(-q --quiet)*'{-v,--verbose}'[increase verbosity]' \
'(- *)'{-V,--version}'[display version information]' \
- \*{-c-,--config=-}'[specify config options]: :_values option
- "default_device\:device"
- "shuffle\:value\:(0 1)"
- "repeat\:value\:(0 1)"' \
'*:sound file or directory:->urls-or-files' && ret=0
;;
ogginfo)
diff --git a/Completion/Unix/Command/_w b/Completion/Unix/Command/_w
index 69751c5e5..e82c84f57 100644
--- a/Completion/Unix/Command/_w
+++ b/Completion/Unix/Command/_w
@@ -1,6 +1,6 @@
#compdef w
-local args
+local -a args
case $OSTYPE in
linux*)
@@ -11,7 +11,7 @@ case $OSTYPE in
'(H -o --old-style -s --short)'{-o,--old-style}'[old style output format]'
'(H -s --short -o --old-style)'{-s,--short}'[use short output format]'
'(H -u --no-current)'{-u,--no-current}'[ignore the username while figuring out the current process and cpu times]'
- '(H -n --no-truncat)'{-n,--no-truncat}'[non-truncated listing (large)]'
+ '(H -p --pids)'{-p,--pids}'[show process IDs]'
+ H
'(-)--help[display help information]'
'(-)'{-V,--version}'[display version information]'
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget
index 50fd7791a..acc8d5c6e 100644
--- a/Completion/Unix/Command/_wget
+++ b/Completion/Unix/Command/_wget
@@ -23,6 +23,7 @@ _arguments -C -s \
'(--config)--no-config' '--rejected-log=:file:_files' \
'(--tries -t)'{--tries=,-t+}'[set number of retries]:number of retries' \
'--retry-connrefused[retry even if connection is refused]' \
+ '--retry-on-host-error[consider host errors as non-fatal, transient errors]' \
'--retry-on-http-error=[specify list of HTTP errors to retry]:http error' \
'(--output-document -O)'{--output-document=,-O+}'[specify file to write documents to]:output file:_files' \
'(--continue -c)'{--continue,-c}'[continue getting an existing file]' \
@@ -98,7 +99,7 @@ _arguments -C -s \
'--content-disposition[honor the Content-Disposition header when choosing local file names]' \
'--content-on-error[output received content on server errors]' \
"--auth-no-challenge[send basic HTTP authentication without first waiting for server's challenge]" \
- '--secure-protocol=[choose secure protocol]:protocol:(SSLv2 SSLv3 TLSv1 TLSv1_1 TLSv1_2 PFS)' \
+ '--secure-protocol=[choose secure protocol]:protocol:(SSLv2 SSLv3 TLSv1 TLSv1_1 TLSv1_2 TLSv1_3 PFS)' \
--https-only \
"--no-check-certificate[don't check the server certificate]" \
'--certificate=[specify client certificate]:client certificate file:_files' \
diff --git a/Completion/Unix/Command/_xmlsoft b/Completion/Unix/Command/_xmlsoft
index 08b123e54..b8cf92700 100644
--- a/Completion/Unix/Command/_xmlsoft
+++ b/Completion/Unix/Command/_xmlsoft
@@ -40,6 +40,7 @@ case $service in
'--maxdepth[increase the maximum depth]:depth' \
'--maxvars[increase the maximum variables]:variables' \
'--maxparserdepth[increase the maximum parser depth]:depth' \
+ '--huge[relax hardcoded limits of the parser]' \
'--seed-rand[initialise random number generator]:seed' \
'--html[input document is an HTML file]' \
'--encoding[the input document character encoding]:encoding:(${encoding[@]})' \
diff --git a/Completion/Unix/Command/_xxd b/Completion/Unix/Command/_xxd
index 31d26ab64..e9015a081 100644
--- a/Completion/Unix/Command/_xxd
+++ b/Completion/Unix/Command/_xxd
@@ -24,7 +24,7 @@ arguments=(
# output options
'(-b -bits -i -include -p -postscript -plain -ps -r -revert -u -uppercase)'{-b,-bits}'[output in binary digits, rather than hex]'
'( -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-E,-EBCDIC}'[print human-readable part in EBCDIC rather than ASCII]'
- '(-i -include -p -postscript -plain -ps -r -revert)'{-e,-endian}'[little-endian dump]'
+ '(-i -include -p -postscript -plain -ps -r -revert)-e[little-endian dump]'
'(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-i,-include}'[output in C include file style]'
'(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -C -capitalize )'{-p,-postscript,-plain,-ps}'[read or write a plain hexdump (no line numbers or ASCII rendering)]'
@@ -35,12 +35,14 @@ arguments=(
'(- :)'{-v,-version}'[show program version]'
'*'{-a,-autoskip}"[a single '*' replaces runs of NUL (toggleable)]"
'(-C -capitalize)'{-C,-capitalize}'[capitalize variable names in C include file style]'
- {-c+,-cols}'[specify number of octets per line]: :_guard "[0-9a-fA-Fx]#" "number of octets per line"'
- {-g+,-groupsize}'[specify the number of octets per group]: :_guard "[0-9]#" "number of octets per group"'
- {-l+,-len}'[specify number of octets to output]: :_guard "[0-9]#" "number of octets to output"'
- {-o+,-offset}'[add specified offset to displayed file position]:offset'
+ '(-c -cols)'{-c+,-cols}'[specify number of octets per line]: :_guard "(0x|)[0-9a-fA-Fx]#" "number of octets per line"'
+ '(-g -groupsize)'{-g+,-groupsize}'[specify the number of octets per group]: :_guard "(0x|)[0-9a-fA-F]#" "number of octets per group"'
+ '(-l -len)'{-l+,-len}'[specify number of octets to output]: :_guard "(0x|)[0-9a-fA-F]#" "number of octets to output"'
+ '(-n -name)'{-n+,-name}'[override the variable name output when -i is used]:variable name'
+ '(-o -offset)'{-o+,-offset}'[add specified offset to displayed file position]:offset'
'-d[show offset in decimal instead of hex]'
- {-s,-skip,-seek}'[specify file offset to dump from]: :_guard "[0-9]#" "file offset to dump from (absolute or relative)"'
+ '-R+[colorize the output]:when:(always auto never)'
+ '(-s -skip -seek)'{-s+,-skip,-seek}'[specify file offset to dump from]: :_guard "(0x|)[0-9a-fA-F]#" "file offset to dump from (absolute or relative)"'
': :_files'
)