tmux-xpanes 2.2.3 (new formula) (#20678)

master
Yasuhiro Yamada 2018-01-21 18:22:54 +09:00 committed by ilovezfs
parent 44e7d526bb
commit 7ac6f28b4d
1 changed files with 22 additions and 0 deletions

22
Formula/tmux-xpanes.rb Normal file
View File

@ -0,0 +1,22 @@
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/v2.2.3.tar.gz"
sha256 "4357b8ac76f3d0b93dbb1626e0881f03143910f428a78db3d8437950bbd15fef"
bottle :unneeded
depends_on "tmux" => :recommended
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