From 4713baaeecee13837736986f56640ef14dd24ddc Mon Sep 17 00:00:00 2001 From: Greg Lazarev Date: Fri, 22 May 2015 10:40:48 -0700 Subject: [PATCH] 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. --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index b3076a3..7974fc4 100644 --- a/zshrc +++ b/zshrc @@ -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