Fix chromium completion

- fix wrong _alternative usage
This commit is contained in:
Shohei YOSHIDA 2026-03-08 22:12:07 +09:00
parent 5021b01fd3
commit a110107c61
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 142 additions and 134 deletions

View File

@ -43,7 +43,7 @@ _arguments \
"--proxy-pac-url=[Specify proxy autoconfiguration URL]:proxy autoconfiguration url:_urls" \ "--proxy-pac-url=[Specify proxy autoconfiguration URL]:proxy autoconfiguration url:_urls" \
"--password-store=[Set the password store to use]:password store: _wanted arguments expl 'wallet store' compadd -- basic gnome kwallet" \ "--password-store=[Set the password store to use]:password store: _wanted arguments expl 'wallet store' compadd -- basic gnome kwallet" \
"--version[print version]" \ "--version[print version]" \
"*:: :{ _alternative _urls _files }" '*:: :{ _alternative "urls\:url\:_urls" "file\:file\:_files" }'
# excerpt from the chromium help message: # excerpt from the chromium help message:
# #
@ -209,3 +209,11 @@ _chromium_proxyurls () {
fi fi
return $ret return $ret
} }
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et