Prefix one more function listed together with aliases with 'function'
[abe:zshrc.git] / zsh.d / 70-completion
1 # -*- sh -*-
2 # /usr/share/doc/zsh/examples/ssh_completion.gz
3 # /usr/share/doc/zsh/examples/ssh_completion2.gz
4 # http://zshwiki.org/CompletionExamples
5
6 #hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*})
7 #zstyle ':completion:*:hosts' hosts $hosts
8
9 [ -f ~/.ssh/config ] && : ${(A)ssh_config_hosts:=${${${${(@M)${(f)"$(<~/.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}}
10 [ -f ~/.ssh/known_hosts ] && : ${(A)ssh_known_hosts:=${${${(f)"$(<$HOME/.ssh/known_hosts)"}%%\ *}%%,*}}
11
12 zstyle ':completion:*:*:*' hosts $ssh_config_hosts $ssh_known_hosts
13