holman/dotfiles — pull request #43 by jacobwg (2012-08-25 15:22:26+00:00)
Title: Delay sourcing of completion.zsh files

As it stands, `.zshrc` is sourcing completion.zsh files twice due to the recent rename of completion files from `completion.sh` to `completion.zsh`. This is unintended, and with git installed via homebrew, sourcing `git/completion.zsh` the first time will cause two `command not found: compdef` errors.

I've attempted to fix the issue by sourcing zsh files the first time with:

```shell
# source every .zsh file in this rep
for config_file ($ZSH/**/*.zsh) [[ "$(basename $config_file)" == "completion.zsh" ]] || source $config_file
```

This feels kind of hackish, but I do not know what the repercussions of sourcing all .zsh files at once rather than leaving completions for the end.