Systemd/shell-completion/zsh/_sd_hosts_or_user_at_host
William Giokas 3e7f60ab32 zsh_completion: Move helper function to autoload
_hosts_or_user_at_host was used by 6 different completions, and
previously was in all 6 of those files. I moved it out to its own file,
_sd_hosts_or_user_at_host. This will be autoloaded for use in other
completion functions. It also allows external completions to use this
function by simply calling _sd_hosts_or_user_at_host as in the systemd
completions.
2013-08-14 22:42:56 -04:00

6 lines
79 B
Plaintext

#autoload
_alternative \
'users-hosts:: _user_at_host' \
'hosts:: _hosts'