Add third-party site-functions to $fpath

Third-party completions get added to
`/usr/local/share/zsh/site-functions`.

Standard `$fpath` contains `/usr/share/zsh/site-functions`
(not the missing `local`).

By adding this to the `$fpath` git subcommands get completed correctly.
Related to https://github.com/thoughtbot/dotfiles/pull/373.
This commit is contained in:
Greg Lazarev 2015-05-22 10:40:48 -07:00
parent f6ce831b9d
commit 4713baaeec

2
zshrc
View file

@ -9,7 +9,7 @@ setopt promptsubst
export PS1='${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[blue]%}%c%{$reset_color%}$(git_prompt_info) %# '
# load our own completion functions
fpath=(~/.zsh/completion $fpath)
fpath=(~/.zsh/completion /usr/local/share/zsh/site-functions $fpath)
# completion
autoload -U compinit