diff options
| author | Christian HoĢltje | 2012-04-29 02:30:26 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-05-02 23:43:50 -0500 |
| commit | ec7684cfe10b114a3cf47cbbfe76aa3961a068d3 (patch) | |
| tree | cbac513dcaaff55f86a7633588ad9b104a7300dc /Library/Formula/ack.rb | |
| parent | 82547a2f8ec7e7af877638c38b97f736fbeb6f29 (diff) | |
| download | homebrew-ec7684cfe10b114a3cf47cbbfe76aa3961a068d3.tar.bz2 | |
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 #11937.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ack.rb')
| -rw-r--r-- | Library/Formula/ack.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/ack.rb b/Library/Formula/ack.rb index 5d069c7db..38a365450 100644 --- a/Library/Formula/ack.rb +++ b/Library/Formula/ack.rb @@ -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 |
