Skip to content

Commit

Permalink
brew-cask-completion: import from homebrew/completions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 25, 2017
1 parent d62f59d commit e329be0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Formula/brew-cask-completion.rb
@@ -0,0 +1,19 @@
class BrewCaskCompletion < Formula
desc "Bash & Fish completion for brew-cask"
homepage "https://github.com/xyb/homebrew-cask-completion"
url "https://github.com/xyb/homebrew-cask-completion/archive/v2.1.tar.gz"
sha256 "27c7ea3b7f7c060f5b5676a419220c4ce6ebf384237e859a61c346f61c8f7a1b"
head "https://github.com/xyb/homebrew-cask-completion.git"

bottle :unneeded

def install
bash_completion.install "homebrew-cask-completion.bash" => "brew-cask"
fish_completion.install "brew-cask.fish"
end

test do
assert_match "-F _brew_cask",
shell_output("source #{bash_completion}/brew-cask && complete -p brew-cask")
end
end

0 comments on commit e329be0

Please sign in to comment.