X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S40_completion;h=4c2d9af2e678ab86d7ac7aa5db1669d06e09c8c1;hp=a2b8eceafb9665f567c5008978013b892040150a;hb=9c2561944d374517bd408197fd056cfb6be8c51d;hpb=30ede04e687d68692af8a93f7dfeaa60d43afbf5 diff --git a/S40_completion b/S40_completion index a2b8ece..4c2d9af 100644 --- a/S40_completion +++ b/S40_completion @@ -1,5 +1,7 @@ #! /usr/bin/zsh +autoload -U compinit + hosts=($( ( \ ( [ -r ~/.ssh/config ] && awk '/^host +[a-z]/ { print $2 }' ~/.ssh/config) ; \ ( [ -r ~/.ssh/known_hosts ] && awk '{print $1}' ~/.ssh/known_hosts | tr , '\n') \ @@ -14,3 +16,4 @@ zstyle ':completion:*' users $users compdef _hosts cc_sync +compinit