Skip to content

Instantly share code, notes, and snippets.

@connorfuhrman
Last active January 23, 2025 20:17
Show Gist options
  • Save connorfuhrman/8995a8d3f3104892b99a0c0f409b3eef to your computer and use it in GitHub Desktop.
Save connorfuhrman/8995a8d3f3104892b99a0c0f409b3eef to your computer and use it in GitHub Desktop.
GNU Screen Configuration
# Session directory
sessiondir ~/.screen
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 50000
# 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
term screen-256color
# mouse tracking allows to switch region focus by clicking
mousetrack on
defmousetrack on
# Make zsh the default shell
shell "/bin/zsh"
# Automatically detach on hangup
autodetach on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment