dotfiles/.config/zsh/completions/_ssh-sign

10 lines
259 B
Plaintext
Raw Normal View History

2022-04-08 20:11:49 +02:00
#compdef ssh-sign
_arguments '-f[keyfile]:filename:_files' '-n[namespace]:namespace:_ssh-sign_namespaces' '*:file:_files'
function _ssh-sign_namespaces()
{
local -a namespaces=(file email git "@$(dnsdomainname)")
_values "namespace" ${namespaces}
}