homebrew-core/Formula/tmuxinator-completion.rb

30 lines
1002 B
Ruby

class TmuxinatorCompletion < Formula
desc "Shell completion for Tmuxinator"
homepage "https://github.com/tmuxinator/tmuxinator"
url "https://github.com/tmuxinator/tmuxinator/archive/v3.0.5.tar.gz"
sha256 "f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4"
license "MIT"
head "https://github.com/tmuxinator/tmuxinator.git", branch: "master"
livecheck do
formula "tmuxinator"
end
bottle do
sha256 cellar: :any_skip_relocation, all: "23173f7e32b442f4b4c001a6d7269b78cee13c875544c73d0bc76a37a70d81c8"
end
conflicts_with "tmuxinator", because: "the tmuxinator formula includes completion"
def install
bash_completion.install "completion/tmuxinator.bash" => "tmuxinator"
zsh_completion.install "completion/tmuxinator.zsh" => "_tmuxinator"
fish_completion.install Dir["completion/*.fish"]
end
test do
assert_match "-F _tmuxinator",
shell_output("bash -c 'source #{bash_completion}/tmuxinator && complete -p tmuxinator'")
end
end