Skip to content

Instantly share code, notes, and snippets.

@devinus
Last active December 14, 2015 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devinus/5112917 to your computer and use it in GitHub Desktop.
Save devinus/5112917 to your computer and use it in GitHub Desktop.
Homebrew formula for the latest iTerm2 tmux package (kept updated)
require 'formula'
class TmuxIterm2 < Formula
homepage 'https://code.google.com/p/iterm2/wiki/TmuxIntegration'
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20130319.tar.gz'
sha1 'f14a0bad6991b9e3380d5c3a6057e09f62597d1f'
depends_on 'pkg-config' => :build
depends_on 'libevent'
if build.head?
depends_on :automake
depends_on :libtool
end
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"
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'
end
def test
system "#{bin}/tmux", "-V"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment