Created
June 24, 2015 22:30
-
-
Save npho/6224d1bcdf257a65c8e2 to your computer and use it in GitHub Desktop.
Brew formula for GNU screen with the vertical split
This file contains 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 ScreenVerticalSplit < Formula | |
homepage 'http://www.gnu.org/software/screen/' | |
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
mirror 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
sha256 '78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77' | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' | |
if ARGV.build_head? | |
depends_on 'autoconf' | |
depends_on 'libtool' | |
depends_on 'automake' | |
end | |
def install | |
if ARGV.build_head? | |
Dir.chdir('src') | |
system "./autogen.sh" | |
end | |
system "./configure", "--enable-colors256", | |
"--prefix=#{prefix}", | |
"--mandir=#{man}", | |
"--infodir=#{info}" | |
if ARGV.build_head? | |
system 'bash osdef.sh' | |
end | |
system "make" | |
system "make install" | |
end | |
end |
A useful .screenrc
file example,
autodetach on
defscrollback 9000
startup_message off
hardstatus off
hardstatus alwayslastline
hardstatus string "%{= bW}[ %H %l ]%?([ %{rW}%u%{-} ])%?[ %-w%{rW}%n*%t%{-}%+w %= ][ %D %m/%d/%y | %c:%s ]"
Useful snippet for your .bashrc
file to automatically rename all your screen titles to the machine's hostname,
# Set screen window title
case "$TERM" in
screen)
PROMPT_COMMAND='echo -ne "\033k`hostname -s`\033\\"'
;;
esac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Borrowed from Masahiro Morinaga, install with 2-liner below,