Skip to content

Instantly share code, notes, and snippets.

@rpsene
Forked from joaopizani/.screenrc
Last active April 27, 2017 15:03
Show Gist options
  • Save rpsene/0e1f549d21674d29db41bdd6ef2f8ef4 to your computer and use it in GitHub Desktop.
Save rpsene/0e1f549d21674d29db41bdd6ef2f8ef4 to your computer and use it in GitHub Desktop.
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
# huge scrollback buffer
defscrollback 50000
# scroll
termcapinfo xterm* ti@:te@
# no welcome message
startup_message off
# 256 colors
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
# mouse tracking allows to switch region focus by clicking
mousetrack on
# window numbering starts at 1, not 0.
bind c screen 1
bind 0 select 10
escape ^aa
# get rid of silly xoff stuff
bind s split
# switch windows with F3 (prev) and F4 (next)
bindkey "^[OR" prev
bindkey "^[OS" next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment