]> git.alrj.org Git - zsh.d.git/commitdiff
Move compinit into the completion snippet, and actually use it.
authorAmand Tihon <amand.tihon@iba-group.com>
Thu, 6 Dec 2012 10:15:13 +0000 (11:15 +0100)
committerAmand Tihon <amand.tihon@iba-group.com>
Thu, 6 Dec 2012 10:15:13 +0000 (11:15 +0100)
S40_completion
example/zshrc

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
index 6b1d0c30737d3f8a551876df41e56f19839eff8f..1e313da9959a775bfea4f187e616f9805b478f71 100644 (file)
@@ -1,6 +1,6 @@
 #! /usr/bin/zsh
 
-autoload -U compinit zrecompile
+autoload -U zrecompile
 
 zsh_cache=${HOME}/.zsh_cache
 mkdir -p $zsh_cache