#compdef pacman-key #typeset -A opt_args #local context state line curcontext="$curcontext" _pacman_key() { _arguments \ '(- : *)'{-h,--help}"[show help]" \ '(-a --add)*'{-a,--add}"[Add the specified keys (empty for stdin)]: :_files" \ '(-d --delete)*'{-d,--delete}"[Remove the Specified keyids]" \ '(-e --export)*'{-e,--export}"[Export the specified or all keyids]" \ '(-f --finger)*'{-f,--finger}"[List fingreprint for specidied or all keyids]" \ '(-l --list-keys)*'{-l,--list-keys}"[List the specified or all keys]" \ '(-r --recv-keys)*'{-r,--recv-keys}"[Fetch the specified keyids]" \ '(-u --updatedb)*'{-u,--updatedb}"[Update the trustdb of pacman]" \ '(-v --verify)*'{-v,--verify}"[Verify the file specified by the signature]: :_files -g '*.sig'" \ '(-V --version)*'{-V,--version}"[Show program version]" \ '(--config)*'{*,--config}"[Use an alternate config file]: :_files" \ '(--edit-key)*'{*,--edit-key}"[Present a menu for key management task on keyids]" \ '(--gpgdir)*'{*,--gpgdir}"[Set an alternate directory for GnuPG (instead of '/etc/pacman.d/gnupg')]: :_files -/" \ '(--import)*'{*,--import}"[Imports pubring.gpg from dir(s)]: :_files -g '*.gpg'" \ '(--import-trustdb)*'{*,--import-tb}"[Imports ownertrust values from trustdb.gpg in dir(s)]: :_files -g '*.gpg'" \ '(--init)*'{*,--init}"[Ensure the keyring is properly initialized]" \ '(--keyserver)*'{*,--keyserver}"[Specify a keyserver to use if necessary]" \ '(--list-sigs)*'{*,--list-sigs}"[List keys and their signatures]" \ '(--lsign-key)*'{*,--lsign-key}"[Locally sign the specified keyid]" \ '(--populate)*'{*,--populate}"[Reload the default keys from the (given) keyrings in '/usr/share/pacman/keyrings']: :_path_files -W /usr/share/pacman/keyrings" \ '(--refresh-keys)*'{*,--refresh-keys}"[Update specified or all keys from a keyserver]" } _pacman_key "$@" # vim: ft=zsh sw=2 ts=2 et