30 lines
1002 B
Ruby
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.1.tar.gz"
|
|
sha256 "1d79dd13beaaf2ed24c8a76410c1a41bedc7785498e199534fa3928bbf8aab01"
|
|
license "MIT"
|
|
head "https://github.com/tmuxinator/tmuxinator.git", branch: "master"
|
|
|
|
livecheck do
|
|
formula "tmuxinator"
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "fa94e8d05c5886957c4bd033771f196db3bc3665b4354ab8c2485a6e833db134"
|
|
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
|