26629ba9ff
tmux-xpanes 4.1.1
22 lines
638 B
Ruby
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.1.tar.gz"
|
|
sha256 "c69ae17516071cbf38cb74aabfc7c55ce221ccf56ab73d23f2b7d2b0613f0c0b"
|
|
|
|
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
|