diff options
| author | Christian HoĢltje | 2012-04-29 03:03:19 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-05-02 23:43:51 -0500 |
| commit | 1414a25eede87b9cf852439d698877375f15bc15 (patch) | |
| tree | c640bc447f09f76d6e3ba1fdec59a999348d1688 /Library | |
| parent | 53806059416f300df6471d18fd7c66470903ff93 (diff) | |
| download | homebrew-1414a25eede87b9cf852439d698877375f15bc15.tar.bz2 | |
task: install completion into site-functions
`_task` 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 #11939.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/task.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/task.rb b/Library/Formula/task.rb index 407543de2..e5ebfd3b1 100644 --- a/Library/Formula/task.rb +++ b/Library/Formula/task.rb @@ -13,6 +13,15 @@ class Task < Formula system "cmake #{std_cmake_parameters}" system "make install" (etc+'bash_completion.d').install 'scripts/bash/task_completion.sh' - (share+'zsh/functions').install 'scripts/zsh/_task' + (share+'zsh/site-functions').install 'scripts/zsh/_task' + 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 |
