aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorChristian Höltje2012-04-29 02:55:56 -0400
committerJack Nagel2012-05-02 23:43:51 -0500
commit53806059416f300df6471d18fd7c66470903ff93 (patch)
tree8cc557324c968e515d86e3f18e1b70d2cc6d5f3a /Library/Formula
parentec7684cfe10b114a3cf47cbbfe76aa3961a068d3 (diff)
downloadhomebrew-53806059416f300df6471d18fd7c66470903ff93.tar.bz2
hub: install completion into site-functions
`_hub` needs to be installed into `share/zsh/site-functions` not `share/zsh/functions`. Files in `share/zsh/functions` must not change unless zsh is upgraded and zsh is restarted. `site-functions` can change during a zsh process's lifetime. Closes #11938. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hub.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
index 0c392e8ea..4f1149819 100644
--- a/Library/Formula/hub.rb
+++ b/Library/Formula/hub.rb
@@ -9,7 +9,7 @@ class Hub < Formula
def install
system "rake", "install", "prefix=#{prefix}"
(prefix+'etc/bash_completion.d').install 'etc/hub.bash_completion.sh'
- (share+'zsh/functions').install 'etc/hub.zsh_completion' => '_hub'
+ (share+'zsh/site-functions').install 'etc/hub.zsh_completion' => '_hub'
end
def caveats; <<-EOS.undent
@@ -17,7 +17,7 @@ class Hub < Formula
#{etc}/bash_completion.d
zsh completion has been installed to:
- #{HOMEBREW_PREFIX}/share/zsh/functions
+ #{HOMEBREW_PREFIX}/share/zsh/site-functions
EOS
end
end