initial
[zsh.git] / .zsh / net:ganneff.de / host:gkar / Completion.zsh
1 # -*- mode: sh;-*-
2
3 # In addition to what we have globally
4 _hostdescs_debconf=(${${${${(f)"$(<$HOME/.hostdesc.debconf)"}:#[\|]*}%%\ *}%%,*})
5 _hostdescs_ganneff=(${${${${(f)"$(<$HOME/.hostdesc.ganneff)"}:#[\|]*}%%\ *}%%,*})
6 _hostdescs_ilo=(${${${${(f)"$(<$HOME/.hostdesc.ilo)"}:#[\|]*}%%\ *}%%,*})
7 _hostdescs_nsb=(${${${${(f)"$(<$HOME/.hostdesc.nsb)"}:#[\|]*}%%\ *}%%,*})
8 _hostdescs_oftc=(${${${${(f)"$(<$HOME/.hostdesc.oftc)"}:#[\|]*}%%\ *}%%,*})
9 _hostdescs_other=(${${${${(f)"$(<$HOME/.hostdesc.other)"}:#[\|]*}%%\ *}%%,*})
10 _hostdescs_spi=(${${${${(f)"$(<$HOME/.hostdesc.spi)"}:#[\|]*}%%\ *}%%,*})
11
12 hosts=(
13 ${HOST}
14 "$_ssh_hosts[@]"
15 "$_ssh_debian_hosts[@]"
16 "$_ssh_etc_hosts[@]"
17 "$_etc_hosts[@]"
18 "$_hostdesc_debconf[@]"
19 "$_hostdesc_ganneff[@]"
20 "$_hostdesc_ilo[@]"
21 "$_hostdesc_nsb[@]"
22 "$_hostdesc_oftc[@]"
23 "$_hostdesc_other[@]"
24 "$_hostdesc_spi[@]"
25 localhost
26 )
27 zstyle ':completion:*:hosts' hosts $hosts