Skip to content

Instantly share code, notes, and snippets.

@dantheman213
Last active March 13, 2020 05:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dantheman213/8df6fabb1bc6fc192c9e to your computer and use it in GitHub Desktop.
Save dantheman213/8df6fabb1bc6fc192c9e to your computer and use it in GitHub Desktop.
GNU Screen configuration file that helps to optimize your experience
# GNU Screen
# Preferred Configuration File
# Turn off start up message
startup_message "off"
# Allow bold colors
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@
# Enable 256 color term
term xterm-256color
# Cache 30000 lines for scroll back
defscrollback 30000
# Setup 4 default shells to tab through (and give them silly names)
screen -t mercury
screen -t venus
screen -t earth
screen -t mars
# The default shell is the first one
select 1
select 0
# Make sure bottom status bar always stays on
hardstatus alwayslastline
# Very nice tabbed colored hardstatus line
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%{-}'
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
@dantheman213
Copy link
Author

curl https://gist.githubusercontent.com/dantheman213/8df6fabb1bc6fc192c9e/raw/bfd65a3695974b94223849c516b5b58828932613/Great%2520GNU%2520Screen%2520config -o ~/.screenrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment