/usr/local/Library/Formula/screen256.rb
参考
https://gist.github.com/1287202
require 'formula'
class Screen256 <Formula
homepage 'http://www.gnu.org/software/screen/'
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
md5 '8506fd205028a96c741e4037de6e3c42'
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master'
def patches
unless ARGV.build_head?
{ :p0 => "https://trac.macports.org/raw-attachment/ticket/13009/patch-pty.c" }
end
end
def install
if ARGV.build_head?
ENV['CC'] = "gcc"
cd 'src'
system "autoheader"
system "autoconf"
end
system "./configure", "--enable-colors256", "--mandir=#{man}", "--infodir=#{info}", "--prefix=#{prefix}"
system "make"
system "make install"
end
end
インストール
brew install screen256
.zshrc
alias screen='/usr/local/Cellar/screen256/4.0.3/bin/screen'