homebrew-core/Formula/tmux-xpanes.rb
BePsvPT daf6425d44
tmux-xpanes 4.1.0
Closes #37885.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-14 06:49:46 +08:00

22 lines
638 B
Ruby

class TmuxXpanes < Formula
desc "Ultimate terminal divider powered by tmux"
homepage "https://github.com/greymd/tmux-xpanes"
url "https://github.com/greymd/tmux-xpanes/archive/v4.1.0.tar.gz"
sha256 "6ec37ce8e3c6bc685e16cdf609bc6d2add7c8b4120a79b84414dc67d97766704"
bottle :unneeded
depends_on "tmux"
def install
system "./install.sh", prefix
end
test do
# Check options with valid combination
pipe_output("#{bin}/xpanes --dry-run -c echo", "hello", 0)
# Check options with invalid combination (-n requires number)
pipe_output("#{bin}/xpanes --dry-run -n foo -c echo 2>&1", "hello", 4)
end
end