go: Install zsh completions

Closes Homebrew/homebrew#16364.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Samuel Cochran 2012-12-03 12:16:46 +08:00 committed by Adam Vandenberg
parent 8916df8306
commit 33994375a7

View file

@ -14,8 +14,9 @@ class Go < Formula
option 'cross-compile-common', "Build the cross-compilers and runtime support for darwin, linux and windows"
def install
# install the completion script
# install the completion scripts
(prefix/'etc/bash_completion.d').install 'misc/bash/go' => 'go-completion.bash'
(share/'zsh/site-functions').install 'misc/zsh/go' => '_go'
if build.include? 'cross-compile-all'
targets = [