diff options
| author | Christian HoĢltje | 2012-04-29 03:45:49 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-05-02 23:43:51 -0500 |
| commit | f69cfc6c567ce9838a63648f142054a647f765b4 (patch) | |
| tree | 70bf5cd0bfd9a14fba09a869031fae3b85a476aa /Library/Formula/git-flow.rb | |
| parent | 7be079015efbba904b1b53b33c755013abcc53b1 (diff) | |
| download | homebrew-f69cfc6c567ce9838a63648f142054a647f765b4.tar.bz2 | |
git-flow: install completion into site-functions
`_git-flow` 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 #11941.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/git-flow.rb')
| -rw-r--r-- | Library/Formula/git-flow.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/git-flow.rb b/Library/Formula/git-flow.rb index 6f852b351..a5e0dfeae 100644 --- a/Library/Formula/git-flow.rb +++ b/Library/Formula/git-flow.rb @@ -22,7 +22,16 @@ class GitFlow < Formula GitFlowCompletion.new.brew do (prefix+'etc/bash_completion.d').install "git-flow-completion.bash" - (share+'zsh/functions').install "git-flow-completion.zsh" + (share+'zsh/site-functions').install "git-flow-completion.zsh" end 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 |
