homebrew-core/Formula/homesick-completion.rb

23 lines
699 B
Ruby

class HomesickCompletion < Formula
desc "Bash completion for Homesick"
homepage "https://github.com/JoeNyland/homesick-completion"
url "https://github.com/JoeNyland/homesick-completion/archive/v1.0.0.tar.gz"
sha256 "f9953d92dc5c0d9770d502a68651795c78f5d7bd6078cd747e77ebc602c43609"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, all: "84ac5662175829b833121f38e89eb136906b72d3274378b024a8059829b7026f"
end
disable! date: "2022-07-31", because: :repo_archived
def install
bash_completion.install "homesick"
end
test do
assert_match "-F _homesick",
shell_output("bash -c 'source #{bash_completion}/homesick && complete -p homesick'")
end
end