Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created February 23, 2011 03:41
Show Gist options
  • Save matschaffer/839974 to your computer and use it in GitHub Desktop.
Save matschaffer/839974 to your computer and use it in GitHub Desktop.
escape ^\a
bell_msg '^GBell in window %n'
defscrollback 10000
bind ^L eval "clear" "scrollback 0" "scrollback 10000"
shell -bash
startup_message off
hardstatus string "screen (%n: %t)"
caption string '%{= kG}[ %{G}%H%{g} ][ %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%= %{g}][ %{Y}%l%{g} ][ %{B}%m/%d %{W}%C%a%{g} ]'
caption always
# Meta-y to put copy buffer into OS X buffer
bind y eval "writebuf $HOME/.screen.pbcopy" "exec sh -c 'pbcopy < $HOME/.screen.pbcopy'"
#terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
# erase background with current bg color
defbce "on"
term xterm-256color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment