Skip to content

Instantly share code, notes, and snippets.

@carlosm3011
Last active January 8, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosm3011/4d4afa75f5cfb4cf325545b5a143ea2f to your computer and use it in GitHub Desktop.
Save carlosm3011/4d4afa75f5cfb4cf325545b5a143ea2f to your computer and use it in GitHub Desktop.
nice-default-screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# 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
hardstatus alwayslastline
# Very nice tabbed colored hardstatus line
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}'
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
startup_message off
altscreen on
windowlist string "%4n %h%=%f"
shell -${SHELL}
pow_detach_msg "Screen session for \${LOGNAME} \$:cr:\$:nl:ended"
logfile "$HOME/.log/screen.%n.%Y-%m-%d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment