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