30 lines
824 B
Ruby
30 lines
824 B
Ruby
require 'formula'
|
|
|
|
class ZshCompletions < Formula
|
|
homepage 'https://github.com/zsh-users/zsh-completions'
|
|
url 'https://github.com/zsh-users/zsh-completions/archive/0.8.0.tar.gz'
|
|
sha1 'd1884c307775a1e0621be0fb7c443f1cf5f260b9'
|
|
|
|
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
|