homebrew-core/Formula/zsh-completions.rb
Baptiste Fontaine 89212db4fa zsh-completions 0.12.0
Closes Homebrew/homebrew#36270.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-27 13:31:07 +00:00

28 lines
806 B
Ruby

class ZshCompletions < Formula
homepage "https://github.com/zsh-users/zsh-completions"
url "https://github.com/zsh-users/zsh-completions/archive/0.12.0.tar.gz"
sha1 "1c39734328b28c619a55fa52fa42e81c314aeadf"
head "https://github.com/zsh-users/zsh-completions.git"
def install
(share/"zsh-completions").install Dir["src/_*"]
end
def caveats
<<-EOS.undent
To activate these completions, add the following to your .zshrc:
fpath=(#{HOMEBREW_PREFIX}/share/zsh-completions $fpath)
You may also need to force rebuild `zcompdump`:
rm -f ~/.zcompdump; compinit
Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting
to load these completions, you may need to run this:
chmod go-w /usr/local/share
EOS
end
end