From 1c526f0cc0a7cc29c14f7fc80e3a8f1408b20bb8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Jan 2017 15:26:30 +0000 Subject: [PATCH] open-completion: import from homebrew/completions. --- Formula/open-completion.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Formula/open-completion.rb diff --git a/Formula/open-completion.rb b/Formula/open-completion.rb new file mode 100644 index 00000000000..d8d40f6c0ce --- /dev/null +++ b/Formula/open-completion.rb @@ -0,0 +1,18 @@ +class OpenCompletion < Formula + desc "Bash completion for open" + homepage "https://github.com/moshen/open-bash-completion" + url "https://github.com/moshen/open-bash-completion/archive/v1.0.3.tar.gz" + sha256 "e7ed931d49d2c9ed5bc4fcad1b60a8c4cb6d4bca86948cb54e6689f313a2029e" + head "https://github.com/moshen/open-bash-completion.git" + + bottle :unneeded + + def install + bash_completion.install "open" + end + + test do + assert_match "-F _open", + shell_output("source #{bash_completion}/open && complete -p open") + end +end