aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git.rb
diff options
context:
space:
mode:
authorTakatoshi Matsumoto2013-01-09 11:15:48 +0900
committerAdam Vandenberg2013-01-08 19:47:03 -0800
commit2c0ba3e3d1cb4b8c5e2931797a72d85445411f2a (patch)
tree06d8c9d9f217d6b7cb36a77eef52dbf53c8c3d91 /Library/Formula/git.rb
parent04bd8a5da1a6843cca924cf8cb6f771a07a211d4 (diff)
downloadhomebrew-2c0ba3e3d1cb4b8c5e2931797a72d85445411f2a.tar.bz2
git: install zsh completion
Closes #16961. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/git.rb')
-rw-r--r--Library/Formula/git.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index ba46fb2db..6866de811 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -65,9 +65,12 @@ class Git < Formula
bin.install 'git-subtree'
end
- # install the completion script first because it is inside 'contrib'
+ # install the completion scripts from 'contrib' first
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash'
(prefix+'etc/bash_completion.d').install 'contrib/completion/git-prompt.sh'
+
+ (share+'zsh/site-functions').install 'contrib/completion/git-completion.zsh' => '_git'
+
(share+'git-core').install 'contrib'
# We could build the manpages ourselves, but the build process depends