24 lines
815 B
Ruby
24 lines
815 B
Ruby
class TmuxinatorCompletion < Formula
|
|
desc "Shell completion for Tmuxinator"
|
|
homepage "https://github.com/tmuxinator/tmuxinator"
|
|
url "https://github.com/tmuxinator/tmuxinator/archive/v2.0.2.tar.gz"
|
|
sha256 "2e473fc56f9491f682ec115b62c07b29bbfb79b2e5bb0cc33ea3c5e008e6f852"
|
|
license "MIT"
|
|
head "https://github.com/tmuxinator/tmuxinator.git"
|
|
|
|
bottle :unneeded
|
|
|
|
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("source #{bash_completion}/tmuxinator && complete -p tmuxinator")
|
|
end
|
|
end
|