Skip to content
Browse files

In order for function autocomplete to fully work, we want to move com…

…pinit until after all .zsh scripts have been loaded. This wasn't working before because completion.zsh was being loaded before config.zsh and completion.zsh called compinit before the functions were added in config.zsh.
  • Loading branch information...
1 parent e8dd193 commit 2ea5830e1b8bd1953749562f857b744ab029b7f6 @zpao zpao committed with holman Oct 26, 2010
Showing with 4 additions and 6 deletions.
  1. +1 −4 zsh/completion.zsh
  2. +3 −2 zsh/zshrc.symlink
5 zsh/completion.zsh
@@ -1,8 +1,5 @@
-autoload -U compinit
# matches case insensitive for lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# pasting with tabs doesn't perform completion
-zstyle ':completion:*' insert-tab pending
+zstyle ':completion:*' insert-tab pending
5 zsh/zshrc.symlink
@@ -14,5 +14,6 @@ then
source ~/.localrc
-# initialize autocomplete just in case
+# initialize autocomplete here, otherwise functions won't be loaded
+autoload -U compinit

0 comments on commit 2ea5830

Please sign in to comment.
Something went wrong with that request. Please try again.