Skip to content

Instantly share code, notes, and snippets.

@isnotnull
Forked from sunblaze/tmux-for-iterm2.rb
Created October 21, 2012 16:31
Show Gist options
  • Save isnotnull/3927484 to your computer and use it in GitHub Desktop.
Save isnotnull/3927484 to your computer and use it in GitHub Desktop.
Homebrew formula to install tmux-for-iTerm2: tmux-for-iTerm2-20120726.tar.gz
require 'formula'
class TmuxForIterm2 < Formula
url 'http://iterm2.googlecode.com/files/iTerm2-1_0_0_20120726.zip'
md5 '596c8ff70a836f67ee3197bb60cf92b3'
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration'
depends_on 'libevent'
def install
system "tar xzf tmux-for-iTerm2-20120726.tar.gz"
cd "tmux" do
ENV.append "LDFLAGS", '-lresolv'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make install"
# Install bash completion scripts for use with bash-completion
(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