Skip to content

Instantly share code, notes, and snippets.

@redrick
Forked from ChrisWills/.screenrc-main-example
Last active September 3, 2017 13:06
Show Gist options
  • Save redrick/56d13bd79fba28c8ceab935c2ddf5e6d to your computer and use it in GitHub Desktop.
Save redrick/56d13bd79fba28c8ceab935c2ddf5e6d to your computer and use it in GitHub Desktop.
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - [email protected]
shell -$SHELL
# 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'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
defbce "on"
# Enable 256 color term
term xterm-256color
# Cache 30000 lines for scroll back
defscrollback 30000
# Very nice tabbed colored hardstatus line
backtick 0 0 5 sh -c 'sysctl -n vm.loadavg | tr -d '{}''
hardstatus alwayslastline
hardstatus string '[%{= KW} %H Load avg.: %` %{= Kw}][%= %{= KW}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{= KW}%c - %d. %M %Y %{= Kw}%{g}]'
# change command character from ctrl-a to ctrl-b (emacs users may want this)
#escape ^Bb
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment