git: fix installation of zsh completion.
Closes Homebrew/homebrew#16992.
This commit is contained in:
parent
ae5276fee3
commit
753b3dc008
1 changed files with 7 additions and 3 deletions
|
@ -65,9 +65,13 @@ class Git < Formula
|
|||
bin.install 'git-subtree'
|
||||
end
|
||||
|
||||
# install the completion script first because it is inside 'contrib'
|
||||
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash'
|
||||
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-prompt.sh'
|
||||
# install the completion scripts from 'contrib' first
|
||||
(etc+'bash_completion.d').install 'contrib/completion/git-completion.bash'
|
||||
(etc+'bash_completion.d').install 'contrib/completion/git-prompt.sh'
|
||||
|
||||
(share+'zsh/site-functions').install 'contrib/completion/git-completion.zsh' => '_git'
|
||||
ln_s "#{etc}/bash_completion.d/git-completion.bash", "#{share}/zsh/site-functions"
|
||||
|
||||
(share+'git-core').install 'contrib'
|
||||
|
||||
# We could build the manpages ourselves, but the build process depends
|
||||
|
|
Loading…
Reference in a new issue