Last active
December 14, 2015 12:28
-
-
Save vizio360/5086478 to your computer and use it in GitHub Desktop.
tmux iterm2 brew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' download gist above and the run: | |
brew install pathToTmuxiTerm2/tmux-for-iterm2.rb | |
' make sure to update the version and the md5 settings in the recipe above to match the version you want to use. | |
' install iterm2 beta | |
https://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-<<< VERSION >>>.tar.gz&can=2&q= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class TmuxForIterm2 < Formula | |
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20130302.tar.gz' | |
md5 '9acb1ed1c3f0e24180c6e2e65e512670' | |
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration' | |
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