Created
November 11, 2015 00:19
-
-
Save davidpelaez/69a47b854a8d9634be1d to your computer and use it in GitHub Desktop.
OSX formula for tmux 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tmux < Formula | |
desc "Terminal multiplexer" | |
homepage "https://tmux.github.io/" | |
url "https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz" | |
sha256 "795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362" | |
bottle do | |
cellar :any | |
revision 1 | |
sha256 "038a53142251f185976b78e70cb0b261f923c4db70ecd55e97b2fcdb6e78b90a" => :el_capitan | |
sha256 "4a15dbb353298f6ab5db3ad0121e50225328d49da1548bee570f93af4c294368" => :yosemite | |
sha256 "ccc3e43a9e544d74d5a081de07294a8c75d14f9649d7fc2e5bc94cc0107e625d" => :mavericks | |
sha256 "145f66ff2b0adf499ee4a8ceab8ec1556d43b74074921ff1e86a4d7be05492c8" => :mountain_lion | |
end | |
head do | |
url "https://github.com/tmux/tmux.git" | |
depends_on "autoconf" => :build | |
depends_on "automake" => :build | |
depends_on "libtool" => :build | |
end | |
depends_on "pkg-config" => :build | |
depends_on "libevent" | |
def install | |
system "sh", "autogen.sh" if build.head? | |
ENV.append "LDFLAGS", "-lresolv" | |
system "./configure", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--sysconfdir=#{etc}" | |
system "make", "install" | |
bash_completion.install "examples/bash_completion_tmux.sh" => "tmux" | |
pkgshare.install "examples" | |
end | |
def caveats; <<-EOS.undent | |
Example configurations have been installed to: | |
#{pkgshare}/examples | |
EOS | |
end | |
test do | |
system "#{bin}/tmux", "-V" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fixed scrolling and mouse use use tmux 2.2
i used
source