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:
parent
f6ce831b9d
commit
4713baaeec
1 changed files with 1 additions and 1 deletions
2
zshrc
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue