homebrew-core/Formula/zsh-completions.rb
Brett Koonce 9ecdf89a88 zsh-completions 0.8.0
Closes Homebrew/homebrew#17690.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-08 09:17:38 -08:00

30 lines
817 B
Ruby

require 'formula'
class ZshCompletions < Formula
homepage 'https://github.com/zsh-users/zsh-completions'
url 'https://github.com/zsh-users/zsh-completions/tarball/0.8.0'
sha1 '9dd4923aab739077640a340ba9f9f2afd7f0a206'
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