From 2c6c877b06881bddacd6a6c6767f897ebb895c52 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 27 Jan 2013 19:57:13 +0000 Subject: git: fix installation of zsh completion. Closes #16992. --- Library/Formula/git.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Library/Formula/git.rb') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 06ef5571b..1d5bdbfad 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -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 -- cgit v1.2.3