Skip to content

Instantly share code, notes, and snippets.

@ijonas
Created August 28, 2012 23:17
Show Gist options
  • Save ijonas/3505221 to your computer and use it in GitHub Desktop.
Save ijonas/3505221 to your computer and use it in GitHub Desktop.
tmux-iterm2
require 'formula'
class TmuxIterm2 < Formula
url 'http://www.emergeadapt.com.s3.amazonaws.com/tmux-for-iTerm2-20120726.tar.gz'
md5 'cfa770d23b11c8f34e139f4608a49d71'
homepage 'http://github.com/gnachman/tmux2'
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-iterm2'
end
def caveats; <<-EOS.undent
Bash completion script was installed to:
#{etc}/bash_completion.d/tmux-iterm2
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment