homebrew-core/Formula/tmuxinator-completion.rb

21 lines
714 B
Ruby

class TmuxinatorCompletion < Formula
desc "Shell completion for Tmuxinator"
homepage "https://github.com/tmuxinator/tmuxinator"
url "https://github.com/tmuxinator/tmuxinator/archive/v0.11.3.tar.gz"
sha256 "1aafdaf3807056cc7ae8cee1f5bba138dd0ecc798c9ff7f51858188051152ed8"
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