mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 12:31:26 +01:00
44798: completion option update
This commit is contained in:
parent
934fc7d116
commit
7d2d242b30
12 changed files with 64 additions and 21 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2019-10-01 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 44798: Completion/Unix/Command/_netstat,
|
||||
Completion/Linux/Command/_strace, Completion/X/Command/_xterm
|
||||
Completion/Linux/Command/_kpartx, Completion/Linux/Command/_ss,
|
||||
Completion/Linux/Command/_btrfs, Completion/X/Command/_xrandr,
|
||||
Completion/Unix/Command/_gnutls, Completion/Unix/Command/_make,
|
||||
Completion/Unix/Command/_xargs, Completion/Unix/Type/_ld_debug:
|
||||
completion option update
|
||||
|
||||
2019-09-30 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 44783, 44791: Completion/Solaris/Command/_dladm,
|
||||
|
|
|
@ -109,16 +109,16 @@ while (( $#state )); do
|
|||
'(-u --uuid)'{-u,--uuid}'[uuid of the subvolume]'
|
||||
'1:subvolume path:_directories'
|
||||
)
|
||||
;;
|
||||
;|
|
||||
subvolume:sync) args+=( '-s[sleep between checks]:delay (seconds) [1]' );;
|
||||
subvolume:find-new) args+=( '1:subvol:_files -/' '2:lastgen: _message "last gen"' );;
|
||||
(device|filesystem|qgroup):(df|du|show|usage))
|
||||
(device|filesystem|qgroup|subvolume):(df|du|show|usage))
|
||||
args+=(
|
||||
'--iec[use 1024 as a base]'
|
||||
'--si[use 1000 as a base]'
|
||||
)
|
||||
;|
|
||||
(device|filesystem):(df|usage))
|
||||
(device|filesystem):(df|usage)|subvolume:show)
|
||||
args+=(
|
||||
'(-b --raw)'{-b,--raw}'[output raw numbers in bytes]'
|
||||
'(-h --human-readable -H)'{-h,--human-readable}'[output human friendly numbers, base 1024]'
|
||||
|
@ -233,7 +233,7 @@ while (( $#state )); do
|
|||
property:list)
|
||||
args+=(
|
||||
'-t[specify object type]:object type:(subvol filesystem inode device)'
|
||||
'1:object'
|
||||
'1: : _guard "^-*" object'
|
||||
)
|
||||
;;
|
||||
quota:(enable|disable)) args+=( '1:path:_files -/' );;
|
||||
|
@ -295,6 +295,7 @@ while (( $#state )); do
|
|||
\*{-b,--block}'[print info from the specified block only]:block number'
|
||||
'(-t --tree)'{-t,--tree}'[print only tree with the given id (string or number)]:tree id'
|
||||
'--follow[use with -b, to show all children tree blocks of the block]'
|
||||
"--noscan[don't scan devices from the filesystem, use only the listed ones]"
|
||||
)
|
||||
;;
|
||||
inspect*:dump-super)
|
||||
|
@ -399,7 +400,11 @@ while (( $#state )); do
|
|||
'1:mount:->mounts'
|
||||
)
|
||||
;;
|
||||
h(|e(|l(|p)))) args+=( '--full[display detailed help]' );;
|
||||
h(|e(|l(|p)))) args+=(
|
||||
'--full[display detailed help on every command]'
|
||||
'--box[show list of built-in tools (busybox style)]'
|
||||
)
|
||||
;;
|
||||
*) args+=( '*: :_default' );; # fallback for unknown subcommands
|
||||
esac
|
||||
if ! (( shift )); then
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#compdef kpartx
|
||||
|
||||
_arguments -s -S : \
|
||||
'-a[add partition mappings]' \
|
||||
'(-d -u -l)-a[add partition mappings]' \
|
||||
'-r[read-only partition mappings]' \
|
||||
'-d[delete partition mappings]' \
|
||||
'-u[update partition mappings]' \
|
||||
'-l[list partition mappings]' \
|
||||
'(-a -u -l)-d[delete partition mappings]' \
|
||||
'(-a -d -l)-u[update partition mappings]' \
|
||||
'(-a -d -u)-l[list partition mappings]' \
|
||||
'-p[set device name-partition number delimiter]' \
|
||||
'-f[force creation of mappings]' \
|
||||
'-g[force GUID partition table]' \
|
||||
|
|
|
@ -41,6 +41,7 @@ _arguments -C -s \
|
|||
"($info -f --family)"{-f+,--family=}'[display sockets of specified type]:family:(inet inet6 link unix netlink vsock tipc xdp help)' \
|
||||
"($info -K --kill)"{-K,--kill}'[forcibly close sockets, display what was closed]' \
|
||||
"($info -H --no-header)"{-H,--no-header}'[suppress header line]' \
|
||||
"($info -O --oneline)"{-O,--oneline}"[print socket's data on a single line]" \
|
||||
"($info -A --query --socket)"{-A+,--query=,--socket=}'[specify socket tables to show]: :_values -s , socket\ table all inet tcp udp raw unix packet netlink unix_dgram unix_stream unix_seqpacket packet_raw packet_dgram vsock_stream vsock_dgram tipc' \
|
||||
"($info -D)"{-D+,--diag=}'[dump raw info to file]:file:_files' \
|
||||
"($info -F)"{-F+,--filter=}'[read filter information from a file]:file:_files' \
|
||||
|
|
|
@ -25,7 +25,7 @@ _arguments -C -s \
|
|||
'(-C -i -k -r -ff -t -tt -ttt -T -y -yy)-c[count time, calls, and errors for each system call and report a summary]' \
|
||||
'(-c)-C[count time, calls, and errors for each system call and report a summary in addition to regular output]' \
|
||||
'-O+[overhead for tracing system calls]:overhead (microseconds)' \
|
||||
'-S+[sort the output of the histogram (-c option) by the specified criterion]:sort criterion:(time calls name nothing)' \
|
||||
'-S+[sort the output of the histogram (-c option) by the specified criterion]:sort criterion [time]:(time calls errors name nothing)' \
|
||||
'-w[summarise syscall latency]' \
|
||||
'*-e+[select events to trace or how to trace]:system call:->expressions' \
|
||||
'*-P+[trace only system calls accessing given path]:path:_files' \
|
||||
|
@ -39,6 +39,7 @@ _arguments -C -s \
|
|||
'*-E+[set or remove exported environment variable]:variable:->envars' \
|
||||
"${root}-u+[run as specified user]:user:_users" \
|
||||
'(:)*-p+[attach to the process with specified process ID and begin tracing]:process ID:_pids' \
|
||||
'--seccomp-bpf[enable seccomp-bpf filtering]' \
|
||||
'-d[show debug output of strace itself on standard error]' \
|
||||
'-v[print unabbreviated versions of environment, stat, termios, etc. calls]' \
|
||||
'(- 1 *)-h[display help information]' \
|
||||
|
|
|
@ -85,7 +85,7 @@ case "$service" in
|
|||
'--benchmark-tls-ciphers[benchmark TLS ciphers]'
|
||||
'--priority-list[print list of the supported priority strings]'
|
||||
'*--alpn=[enable application layer protocol]:string'
|
||||
'--recordsize=[specify maximum record size to advertise]:record size'
|
||||
'--recordsize=[specify maximum record size to advertise]:record size (0-4096)'
|
||||
"--disable-sni[don't send a Server Name]"
|
||||
'--single-key-share[send a single key share under TLS1.3]'
|
||||
'--post-handshake-auth[enable post-handshake authentication under TLS1.3]'
|
||||
|
@ -119,6 +119,8 @@ case "$service" in
|
|||
'--pskhint=[specify PSK identity hint to use]:string'
|
||||
'*--ocsp-response=[specify OCSP response to send to client]:string:_files'
|
||||
'--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'
|
||||
)
|
||||
;;
|
||||
|
||||
|
|
|
@ -172,14 +172,14 @@ _make() {
|
|||
'-d[print lots of debug information]'
|
||||
'--debug=-[print various types of debug information]:debug options:->debug'
|
||||
'(-e --environment-overrides)'{-e,--environment-overrides}'[environment variables override makefiles]'
|
||||
'--eval=-[evaluate STRING as a makefile statement]:STRING'
|
||||
'(-f --file --makefile)'{-f,--file=,--makefile=}'[read FILE as a makefile]:makefile:->file'
|
||||
\*{-E+,--eval=-}'[evaluate string as a makefile statement]:string'
|
||||
'(-f --file --makefile)'{-f,--file=,--makefile=}'[read specified file as a makefile]:makefile:->file'
|
||||
'(- *)'{-h,--help}'[print help message and exit]'
|
||||
'(-i --ignore-errors)'{-i,--ignore-errors}'[ignore errors from recipes]'
|
||||
'*'{-I,--include-dir=}'[search DIRECTORY for included makefiles]:search path for included makefile:->dir'
|
||||
'(-j --jobs)'{-j+,--jobs=}'[allow N jobs at once; infinite jobs with no arg]:number of jobs'
|
||||
'*'{-I,--include-dir=}'[search specified directory for included makefiles]:search path for included makefile:->dir'
|
||||
'(-j --jobs)'{-j+,--jobs=}'[allow specified number of parallel jobs; unlimited jobs with no arg]:: : _guard "[0-9]#" "number of jobs"'
|
||||
'(-k --keep-going)'{-k,--keep-going}"[keep going when some targets can't be made]"
|
||||
'(-l --load-average --max-load)'{-l,--load-average=,--max-load}"[don't start multiple jobs unless load is below N]:load"
|
||||
'(-l --load-average --max-load)'{-l,--load-average=,--max-load}"[don't start multiple jobs unless load is below specified value]:load"
|
||||
'(-L --check-symlink-times)'{-L,--check-symlink-times}'[use the latest mtime between symlinks and target]'
|
||||
'(-n --just-print --dry-run --recon)'{-n,--just-print,--dry-run,--recon}"[don't actually run any recipe; just print them]"
|
||||
'*'{-o,--old-file=,--assume-old=}"[consider specified file to be old and don't remake it]:file not to remake:->file"
|
||||
|
@ -189,12 +189,13 @@ _make() {
|
|||
'(-r --no-builtin-rules)'{-r,--no-builtin-rules}'[disable the built-in implicit rules]'
|
||||
'(-R --no-builtin-variables)'{-R,--no-builtin-variables}'[disable the built-in variable settings]'
|
||||
'(-s --silent --quiet)'{-s,--silent,--quiet}"[don't echo recipes]"
|
||||
'--no-silent[echo recipes (disable --silent mode)]'
|
||||
'(-S --no-keep-going --stop)'{-S,--no-keep-going,--stop}'[turns off -k]'
|
||||
'(-t --touch)'{-t,--touch}'[touch targets instead of remaking them]'
|
||||
'(- *)'{-v,--version}'[print the version number of make and exit]'
|
||||
'(-w --print-directory)'{-w,--print-directory}'[print the current directory]'
|
||||
'--no-print-directory[turn off -w, even if it was turned on implicitly]'
|
||||
'*'{-W,--what-if=,--new-file=,--assume-new=}'[consider FILE to be infinitely new]:file to treat as modified:->file'
|
||||
'*'{-W,--what-if=,--new-file=,--assume-new=}'[consider specified file to be infinitely new]:file to treat as modified:->file'
|
||||
'--warn-undefined-variables[warn when an undefined variable is referenced]'
|
||||
'--warn-undefined-functions[warn when an undefined user function is called]'
|
||||
)
|
||||
|
|
|
@ -174,8 +174,15 @@ case $OSTYPE in
|
|||
;|
|
||||
|
||||
solaris2.<11->)
|
||||
sets+=( dcache '-[^-]#d*' )
|
||||
sel_dcache=( '-d[display the destination cache entry table]' )
|
||||
dcache=( $families )
|
||||
args=( '-T+[specify time format]:time format:((u\:seconds\ since\ epoch d\:standard\ date\ format))' )
|
||||
sockets=( '-u[list user, pid and program that created network endpoint]' )
|
||||
sockets+=(
|
||||
'-u[list user, pid and program that created network endpoint]'
|
||||
'-k[show only sockets with kernel data path bypass enabled]'
|
||||
'-L[only show state of sockets using SO_REUSEPORT load balancing]'
|
||||
)
|
||||
;&
|
||||
solaris*)
|
||||
args=( -A '-*' $args )
|
||||
|
|
|
@ -47,6 +47,7 @@ case $variant in
|
|||
'(-0 --null -d --delimiter)'{-0,--null}'[expect NUL characters as input separators]'
|
||||
'(-d --delimiter -0 --null)'{-d+,--delimiter=}'[specify delimiter of input items]:delimiter'
|
||||
'(-l -L --max-lines -n --max-args -s --max-chars)--max-lines=-[call program for every number of lines]::number of input lines'
|
||||
'(-o --open-tty)'{-o,--open-tty}'[reopen stdin as /dev/tty in the child process before executing the command]'
|
||||
'--process-slot-var=[set environment variable to unique value in child processes]:variable:_parameters -g "*export*"'
|
||||
'(-r --no-run-if-empty)'{-r,--no-run-if-empty}"[don't run command in absence of input]"
|
||||
'(- *)--help[show help information]'
|
||||
|
|
|
@ -31,6 +31,7 @@ case $OSTYPE in
|
|||
linux*)
|
||||
vals+=(
|
||||
'all[combine all options]'
|
||||
'scopes[display scope information]'
|
||||
'statistics[display relocation statistics]'
|
||||
)
|
||||
;;
|
||||
|
|
|
@ -46,6 +46,13 @@ _arguments -C \
|
|||
'*--rmmode:Mode name:' \
|
||||
"*--addmode:output:->outputs:name" \
|
||||
"*--delmode:output:->outputs:name" \
|
||||
'--listproviders' \
|
||||
'--setprovideroutputsource:provider: :source' \
|
||||
'--setprovideroffloadsink:provider: :sink' \
|
||||
'--listmonitors' \
|
||||
'--listactivemonitors' \
|
||||
'--setmonitor:name' \
|
||||
'--delmonitor:name' \
|
||||
&& return 0
|
||||
|
||||
case $state in
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
#compdef xterm
|
||||
|
||||
_xt_arguments \
|
||||
-+{ah,ai,aw,bc,bdc,cb,cm,cn,cu,dc,hf,ie,im,j,ls,mb,nul,pc,rw,s,sb,sf,si,sk,sp,t,u8,ulc,ut,vb,wc,wf,samename} \
|
||||
-{version,help,132,leftbar,rightbar,C} \
|
||||
-+{132,ah,ai,aw,bc,bdc,cb,cjk_width,cm,cn,cu,dc,fbb,fbx,fullscreen,hf,hm,hold,ie,im,itc,j,k8,l,lc,ls,maximized,mb,mesg,mk_width,nul,pc,pob,rvc,rw,s,samename,sb,sf,si,sk,sm,sp,t,u8,uc,ulc,ulit,ut,vb,wc,wf} \
|
||||
-{version,help,leftbar,rightbar,C} \
|
||||
'-report-'{charclass,colors,fonts} \
|
||||
'-T:title' \
|
||||
'-b:inner border size:' \
|
||||
'-baudrate:rate [38400]' \
|
||||
'-bcf:time text cursor is off when blinking (milliseconds):' \
|
||||
'-bcn:time text cursor is on when blinking (milliseconds):' \
|
||||
'-cc:character class:' \
|
||||
'-class:string' \
|
||||
'-cr:text cursor color:_x_color' \
|
||||
'-e:program: _command_names -e:*::program arguments: _normal' \
|
||||
'-fa:font pattern:_xft_fonts' \
|
||||
|
@ -15,11 +19,14 @@ _xt_arguments \
|
|||
'-hc:background color for highlighted text:_x_color' \
|
||||
'-mc:multi-click threshold (milliseconds):' \
|
||||
'-ms:pointer cursor color:_x_color' \
|
||||
'-n:icon name' \
|
||||
'-nb:margin bell number:' \
|
||||
'-selbg:color:_x_color' \
|
||||
'-selfg:color:_x_color' \
|
||||
'-sh:scaling' \
|
||||
'-sl:save lines:' \
|
||||
'-ti:terminal ID:_terminals' \
|
||||
'-tm:terminal setting:' \
|
||||
'-tn:terminal type:' \
|
||||
'-ziconbeep:iconbeep (percent):' \
|
||||
'-C' \
|
||||
'-S-:pseudo-terminal and file descriptor:'
|
||||
|
|
Loading…
Reference in a new issue