Fix blkid completion

- fix wrong short name option
- correct _files flag to complete device files
This commit is contained in:
Shohei YOSHIDA 2026-03-08 22:06:47 +09:00
parent 63fb9ca323
commit 81a016309d
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 2 additions and 2 deletions

View File

@ -50,14 +50,14 @@ _arguments \
'(-o --output)'{-o+,--output}'[Use the specified output format]:format:(full value list device udev export)' \ '(-o --output)'{-o+,--output}'[Use the specified output format]:format:(full value list device udev export)' \
'(-O --offset)'{-O+,--offset}'[Probe at the given offset]:offset' \ '(-O --offset)'{-O+,--offset}'[Probe at the given offset]:offset' \
'(-p --probe)'{-p,--probe}'[Switch to low-level superblock probing mode]' \ '(-p --probe)'{-p,--probe}'[Switch to low-level superblock probing mode]' \
'(-s --match-tag)'{-m+,--match-tag}'[Show only the tags that match tag]:tag' \ '(-s --match-tag)'{-s+,--match-tag}'[Show only the tags that match tag]:tag' \
'(-S --size)'{-S,--size}'[Override the size of device/file]' \ '(-S --size)'{-S,--size}'[Override the size of device/file]' \
'(-t --match-token)'{-t+,--match-token}'[Search for block devices with tokens named NAME that have the VALUE]:name' \ '(-t --match-token)'{-t+,--match-token}'[Search for block devices with tokens named NAME that have the VALUE]:name' \
'(-u --usages)'{-u,--usages}'[Restrict the probing functions to the specified comma-separated list of usage types]:list' \ '(-u --usages)'{-u,--usages}'[Restrict the probing functions to the specified comma-separated list of usage types]:list' \
'(-U --uuid)'{-U,--uuid}'[Look up the device that uses this filesystem uuid]:uuid' \ '(-U --uuid)'{-U,--uuid}'[Look up the device that uses this filesystem uuid]:uuid' \
'(- *)'{-h,--help}'[Display help text and exit]' \ '(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \ '(- *)'{-V,--version}'[Print version and exit]' \
'*:device:_files -g /dev' '*:device:_files -W /dev'
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script