aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChristian Höltje2012-04-29 03:54:35 -0400
committerJack Nagel2012-05-02 23:43:51 -0500
commit5bf4744d97a26fd60672555ebdba3d6764ed3918 (patch)
tree5c3313e5bd9c5724d2b2fbfedf5970ed709731e3 /Library
parentf69cfc6c567ce9838a63648f142054a647f765b4 (diff)
downloadhomebrew-5bf4744d97a26fd60672555ebdba3d6764ed3918.tar.bz2
autojump: install completion into site-functions
`_autojump` 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. This will enable homebrew's zsh to automatically use the completion. See issue #11936 for details. Closes #11942. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/autojump.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb
index 99aca681e..3eed705fe 100644
--- a/Library/Formula/autojump.rb
+++ b/Library/Formula/autojump.rb
@@ -14,7 +14,7 @@ class Autojump < Formula
man1.install 'autojump.1'
(prefix+'etc').install 'autojump.sh' => 'autojump'
(prefix+'etc').install 'autojump.bash', 'autojump.zsh'
- (share+'zsh/functions').install '_j'
+ (share+'zsh/site-functions').install '_j'
end
def caveats; <<-EOS.undent
@@ -23,6 +23,9 @@ class Autojump < Formula
if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
+
+ zsh completion has been installed to:
+ #{HOMEBREW_PREFIX}/share/zsh/site-functions
EOS
end
end