ack: install completion into site-functions

`_ack` 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 Homebrew/homebrew#11937.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Christian Höltje 2012-04-29 02:30:26 -04:00 committed by Jack Nagel
parent 211df3a266
commit 3bdc970ab5

View file

@ -10,6 +10,15 @@ class Ack < Formula
man1.install 'ack.1'
bin.install 'ack'
(prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
(share+'zsh/functions').install 'etc/ack.zsh_completion' => '_ack'
(share+'zsh/site-functions').install 'etc/ack.zsh_completion' => '_ack'
end
def caveats; <<-EOS.undent
Bash completion has been installed to:
#{etc}/bash_completion.d
zsh completion has been installed to:
#{HOMEBREW_PREFIX}/share/zsh/site-functions
EOS
end
end