Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2ea5830e1b8bd1953749562f857b744ab029b7f6 1 parent e8dd193
@zpao zpao authored holman committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.