Skip to content

Instantly share code, notes, and snippets.

@oldsharp
Last active August 25, 2016 15:36
Show Gist options
  • Save oldsharp/78e59ace13db4baecb23 to your computer and use it in GitHub Desktop.
Save oldsharp/78e59ace13db4baecb23 to your computer and use it in GitHub Desktop.
screenrc
# Configure File for GNU Screen
# This is how one can set a reattach password:
#password ODSJQf.4IJN7E # "1234"
# The following lines give a two-line status, with the current window
# highlighted
hardstatus off
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%S:%H %{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B} %Y-%m-%d %{W} %c:%s %{g}]'
# 256 colors
term screen-256color
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
# Enable support for the "alternate screen" capability in all windows
altscreen on
# Huge scrollback buffer
defscrollback 5000
# No annoying audible bell, please
vbell on
# Detach on hangup
autodetach on
# Don't display the Copyright page
startup_message off
# Mouse tracking allows to switch region focus by clicking
mousetrack on
# Default to open 4 windows
screen -t bash 0 bash
screen -t bash 1 bash
screen -t bash 2 bash
screen -t bash 3 bash
select 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment