20 lines
713 B
Ruby
20 lines
713 B
Ruby
class TmuxinatorCompletion < Formula
|
|
desc "Shell completion for Tmuxinator"
|
|
homepage "https://github.com/tmuxinator/tmuxinator"
|
|
url "https://github.com/tmuxinator/tmuxinator/archive/v1.1.2.tar.gz"
|
|
sha256 "455e0b92f6b54d9ed8a132eb624c004ffa6fd219d1d0f710af90d3068e10ce07"
|
|
head "https://github.com/tmuxinator/tmuxinator.git"
|
|
|
|
bottle :unneeded
|
|
|
|
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
|