1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

41958: update util-linux completions to 2.31; new hexdump completion

This commit is contained in:
Oliver Kiddle 2017-10-29 13:42:53 +01:00
parent 85e56b5a48
commit 01523f4145
6 changed files with 81 additions and 19 deletions

View file

@ -18,7 +18,7 @@ _arguments -s -S \
- 'info' \
'(-v --verbose)'{-v,--verbose}'[verbose mode]' \
'(-o --offset -a --all)'{-a,--all}'[show the status of all loop devices]' \
'(-O --output)'{-O+,--output=}'[specify columns to be printed with --list]:column:_sequence -s , compadd - name autoclear back-file back-ino back-maj\:min maj\:min offset partscan ro sizelimit dio' \
'(-O --output)'{-O+,--output=}'[specify columns to be printed with --list]:column:_sequence -s , compadd - name autoclear back-file back-ino back-maj\:min maj\:min offset partscan ro sizelimit dio log-sec' \
'(-J --json --raw -O --output -n --noheadings)'{-J,--json}'[use JSON --list output format]' \
'(-l --list)'{-l,--list}'[list currently used loop devices]' \
'(-J --json)--raw[raw output format]' \
@ -36,6 +36,7 @@ _arguments -s -S \
'(-L --nooverlap)'{-L,--nooverlap}'[avoid possible conflict between devices]' \
'(-P --partscan)'{-P,--partscan}'[scan the partition table of newly created loop devices]' \
'--sizelimit[limit device to specified size]:size (bytes)' \
'(-b --sector-size)'{-b+,--sector-size=}'[set logical sector size of loop device]:size (bytes)' \
'--show[print device name after setup]' \
'(-r --read-only)'{-r,--read-only}'[set up a read-only loop device]' \
'1:file:_files' \

View file

@ -29,6 +29,7 @@ _arguments -C -s -S \
'(H)'{-i,--ascii}'[output ascii characters only]' \
'(H)'{-J,--json}'[use JSON output format]' \
'(H)'{-l,--list}'[use list format output]' \
'(H)'{-t,--tree}'[use tree format output]' \
'(H)'{-P,--pairs}'[use key="value" output format]' \
'(H)'{-r,--raw}'[use raw output format]' \
+ 'H' \

View file

@ -4,9 +4,19 @@ _arguments -s -S \
'(H -a --all)'{-a,--all}'[wipe all magic strings]' \
'(H -b --backup)'{-b,--backup}'[create a signature backup in $HOME]' \
'(H -f --force)'{-f,--force}'[force erasure]' \
'(H -i --no-headings -J --json -p --parsable)'{-i,--no-headings}"[don't print headings]" \
'(H -J --json -i --no-headings -p --parsable)'{-J,--json}'[use JSON output format]' \
'(H -n --no-act)'{-n,--no-act}'[do everything except the actual write() call]' \
'(H -o --offset)'{-o+,--offset=}'[specify offset to erase]:offset (bytes)' \
'(H -p --parsable)'{-p,--parsable}'[print out in parsable instead of printable format]' \
'(H -O --output)'{-O+,--output=}'[specify columns to display]: : _values -s, "column"
"uuid[partition/filesystem UUID]"
"label[filesystem label]"
"length[magic string length]"
"type[superblock type]"
"offset[magic string offset]"
"usage[type description]"
"device[block device name]"' \
'(H -p --parsable -i --no-headings -J --json)'{-p,--parsable}'[print out in parsable instead of printable format]' \
'(H -q --quiet)'{-q,--quiet}'[suppress output messages]' \
'(H -t --types)'{-t+,--types=}'[limit the set of filesystem, RAIDs or partition tables]:type:_file_systems' \
'(H)*:disk device:_files -g "*(-%)" -P / -W /' \