Skip to content

Instantly share code, notes, and snippets.

@fujimogn
Created February 18, 2012 19:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujimogn/1860802 to your computer and use it in GitHub Desktop.
Save fujimogn/1860802 to your computer and use it in GitHub Desktop.
Formula for tmux with iTerm2 1.0.0.20120203 http://iterm2.googlecode.com/files/iTerm2-1_0_0_20120203.zip
require 'formula'
class TmuxIterm2 < Formula
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20120203.tar.gz'
sha1 'b0c78e3f142cc735f0518951c04eab947ca7c95b'
homepage 'http://code.google.com/p/iterm2/'
depends_on 'libevent'
def install
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'
end
def caveats; <<-EOS.undent
Bash completion script was installed to:
#{etc}/bash_completion.d/tmux
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment