X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S40_completion;h=4c2d9af2e678ab86d7ac7aa5db1669d06e09c8c1;hp=a2b8eceafb9665f567c5008978013b892040150a;hb=fa67692f7af21ac494889ecc956b48c5c4cdf687;hpb=b8bdeb75617dc725978b3fe089b4f832aac3c958 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