diff options
| author | Robson Roberto Souza Peixoto | 2014-02-12 09:10:52 -0300 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-12 13:08:21 +0000 |
| commit | a353f09798e2880f270d2028030b5992ca83b448 (patch) | |
| tree | 0271f6e8351c9ed728dbe742c071b1fa86c396e5 /Library/Formula/docker.rb | |
| parent | 501af0eedb0d01b11f4726274d0069af341aa2f8 (diff) | |
| download | homebrew-a353f09798e2880f270d2028030b5992ca83b448.tar.bz2 | |
docker: add bash/zsh completion.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/docker.rb')
| -rw-r--r-- | Library/Formula/docker.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/docker.rb b/Library/Formula/docker.rb index 50b85bf22..fd753492b 100644 --- a/Library/Formula/docker.rb +++ b/Library/Formula/docker.rb @@ -5,6 +5,8 @@ class Docker < Formula url "https://github.com/dotcloud/docker.git", :tag => "v0.8.0" sha1 "1e9362dab2ac2ecb4a1f193a7e72d060000438c3" + option 'without-completions', 'Disable bash/zsh completions' + bottle do revision 1 sha1 "d2cdd9ed152a43cf1008a1025a9fefa5b9cb6ed3" => :mavericks @@ -27,6 +29,11 @@ class Docker < Formula system "hack/make.sh", "dynbinary" bin.install "bundles/0.8.0/dynbinary/docker-0.8.0" => "docker" + + if build.with? 'completions' + bash_completion.install 'contrib/completion/bash/docker' + zsh_completion.install 'contrib/completion/zsh/_docker' + end end test do |
