chiark / gitweb /
zsh_completion: Move helper function to autoload
authorWilliam Giokas <1007380@gmail.com>
Mon, 12 Aug 2013 17:41:18 +0000 (12:41 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Aug 2013 02:42:56 +0000 (22:42 -0400)
commit3e7f60ab32fc2a7d5244d10a0c4e1c3be838409d
treec8553b26fb33842396519cbea84b160e1a954a23
parent693093c6db9d8510729b7566e74182b4ff50e31c
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.
Makefile.am
shell-completion/zsh/_hostnamectl
shell-completion/zsh/_localectl
shell-completion/zsh/_loginctl
shell-completion/zsh/_machinectl
shell-completion/zsh/_sd_hosts_or_user_at_host [new file with mode: 0644]
shell-completion/zsh/_systemctl
shell-completion/zsh/_timedatectl