Merge pull request #1205 from zsh-users/update-macos-completions

refactoring macOS command completions
This commit is contained in:
Shohei YOSHIDA 2025-12-15 23:12:18 +09:00 committed by GitHub
commit 531d8ce5e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -34,10 +34,10 @@
#
# ------------------------------------------------------------------------------
_arguments \
_arguments -s \
'-b[Show Bonjour advertised networkQuality servers]' \
'-B[Run against specified Bonjour instance]:name' \
'-C[Use custom configuration URL or path]:url_or_path' \
'-C[Use custom configuration URL or path]:url_or_path:_urls' \
'-f[Force usage of a specific protocol selection]:option:(h1 h2 h3 L4S noL4S)' \
'-I[Bind test to interface]:interface:_net_interfaces' \
'-M[Maximum runtime in seconds]:seconds' \

View File

@ -34,7 +34,7 @@
#
# ------------------------------------------------------------------------------
_arguments \
_arguments -s \
'-c[force screen capture to go to the clipboard]' \
'(-i -J -s -w -W)-b[capture touch bar only non interactive modes]' \
'(-b -i -J -s -w -W)-C[capture the cursor as well as the screen only in non interactive modes]' \

View File

@ -39,15 +39,15 @@ local -a format=(txt html rtf rtfd doc docx wordml odt webarchive)
_arguments -S \
'-help[Show the usage information for the command and exit]' \
'-info[Display information about the specified files]' \
'-convert[Convert the specified files to the indicated format and write]:format:'"($format)" \
'-cat[Read the specified files, concatenate them in the indicated format]:format:'"($format)" \
'-convert[Convert the specified files to the indicated format and write]:format:(($format))' \
'-cat[Read the specified files, concatenate them in the indicated format]:format:(($format))' \
'-extension[Specify an extension to be used for output files]:ext' \
'-output[Specify the file name to be used for the first output file]:path:_files' \
'-stdin[Specify that input should be read from stdin rather than from files]' \
'-stdout[Specify that the first output file should go to stdout]' \
'-encoding[Specify the encoding to be used for plain text or HTML output files]:encode' \
'-encoding[Specify the encoding to be used for plain text or HTML output files]:name' \
'-inputencoding[Force all plain text input files to be interpreted using the specified encoding]' \
'-format[Force all input files to be interpreted using the indicated format]:format:'"($format)" \
'-format[Force all input files to be interpreted using the indicated format]:format:(($format))' \
'-font[Specify the name of the font to be used for converting plain to rich text]:font' \
'-fontsize[Specify the size in points of the font to be used for converting plain to rich text]:size' \
'-noload[Do not load subsidiary resources]' \