diff --git a/.config/zsh/completions/_ssh-sign b/.config/zsh/completions/_ssh-sign index 20f0037..389008f 100644 --- a/.config/zsh/completions/_ssh-sign +++ b/.config/zsh/completions/_ssh-sign @@ -1,13 +1,13 @@ #compdef ssh-sign -_arguments '-f[key file]:filename:_files' '-n[namespace]:namespace:_ssh-sign_namespaces' '-h[short help text]' '*:file:_files' - function _ssh-sign_namespaces() { local -a namespaces=(file email git "@$(dnsdomainname)") _values "namespace" ${namespaces} } +_arguments '-f[key file]:filename:_files' '-n[namespace]:namespace:_ssh-sign_namespaces' '-h[short help text]' '*:file:_files' + # Local Variables: # mode: shell-script # End: diff --git a/.config/zsh/completions/_translate b/.config/zsh/completions/_translate index 8c785b5..4a47fd2 100644 --- a/.config/zsh/completions/_translate +++ b/.config/zsh/completions/_translate @@ -1,12 +1,5 @@ #compdef translate -_arguments '-h[short help text]' \ - '--help[short help text]' \ - '--domain[domain of instance to use]:domain:_ssh_hosts' \ - '--from[Language to translate from]:language:_translate_languages' \ - '--to[Language to translate to]:language:_translate_languages' \ - '*:text:' - function _translate_languages() { local -a languages=($(curl -s https://libretranslate.de/languages \ @@ -14,6 +7,13 @@ function _translate_languages() _values "language" ${languages} } +_arguments '-h[short help text]' \ + '--help[short help text]' \ + '--domain[domain of instance to use]:domain:_ssh_hosts' \ + '--from[Language to translate from]:language:_translate_languages' \ + '--to[Language to translate to]:language:_translate_languages' \ + '*:text:' + # Local Variables: # mode: shell-script # End: