Skip to content

Instantly share code, notes, and snippets.

@mgrouchy
Forked from isnotnull/tmux-for-iterm2.rb
Last active December 14, 2015 07:29
Show Gist options
  • Save mgrouchy/5051373 to your computer and use it in GitHub Desktop.
Save mgrouchy/5051373 to your computer and use it in GitHub Desktop.
require 'formula'
class TmuxForIterm2 < Formula
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration'
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20130210.tar.gz'
sha1 'd16f3c3abd510cb0a1fc6209bfb3fd83c5639f19'
depends_on 'pkg-config' => :build
depends_on 'libevent'
if build.head?
depends_on :automake
depends_on :libtool
end
def install
system "tar xzf /Library/Caches/Homebrew/tmux-for-iTerm2-20130210.tar.gz"
cd "tmux" do
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-for-iterm2'
end
end
def caveats; <<-EOS.undent
Bash completion script was installed to:
#{etc}/bash_completion.d/tmux-for-iterm2
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment