dotfiles/.config/zsh/completions/_ssh-sign
tastytea c2f45d5661
Improve ssh-sign function
Add -h option, don't require argument
2022-04-08 22:26:12 +02:00

14 lines
330 B
Plaintext

#compdef ssh-sign
_arguments '-f[key file]:filename:_files' '-n[namespace]:namespace:_ssh-sign_namespaces' '*:file:_files' '-h[short help text]'
function _ssh-sign_namespaces()
{
local -a namespaces=(file email git "@$(dnsdomainname)")
_values "namespace" ${namespaces}
}
# Local Variables:
# mode: shell-script
# End: