]> git.alrj.org Git - zsh.d.git/blobdiff - S40_completion
Move compinit into the completion snippet, and actually use it.
[zsh.d.git] / S40_completion
index a2b8eceafb9665f567c5008978013b892040150a..4c2d9af2e678ab86d7ac7aa5db1669d06e09c8c1 100644 (file)
@@ -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