docker: add bash/zsh completion.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
ef43ead81a
commit
b62d8a03c3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue