diff options
| author | Seth Voltz | 2012-07-18 16:20:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-22 12:09:12 -0700 |
| commit | 1c02a81d8fbecccfc327edfb6d841a4618c813a7 (patch) | |
| tree | f7c98f7284adba4d1cd0dfafa5febd4362947d83 /Library/Formula | |
| parent | e76776f2bd8e45fe890151faae36816360f0dfdb (diff) | |
| download | homebrew-1c02a81d8fbecccfc327edfb6d841a4618c813a7.tar.bz2 | |
zsh-completions 0.5.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/zsh-completions.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/zsh-completions.rb b/Library/Formula/zsh-completions.rb new file mode 100644 index 000000000..2477d7d76 --- /dev/null +++ b/Library/Formula/zsh-completions.rb @@ -0,0 +1,28 @@ +require 'formula' + +class ZshCompletions < Formula + homepage 'https://github.com/zsh-users/zsh-completions' + url 'https://github.com/zsh-users/zsh-completions/tarball/0.5.2' + sha1 'aee4dde26e6b54c2c580380241c4c384b6d4962d' + + def install + (share/'zsh-completions').install Dir['_*'] + 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 |
