From ec7684cfe10b114a3cf47cbbfe76aa3961a068d3 Mon Sep 17 00:00:00 2001 From: Christian Höltje Date: Sun, 29 Apr 2012 02:30:26 -0400 Subject: 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 --- Library/Formula/ack.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3