Skip to content

Instantly share code, notes, and snippets.

@zertrin
Created July 10, 2020 06:03
Show Gist options
  • Save zertrin/9a4083a9fd384ea6c166e3d9e8865b50 to your computer and use it in GitHub Desktop.
Save zertrin/9a4083a9fd384ea6c166e3d9e8865b50 to your computer and use it in GitHub Desktop.
.screenrc
term screen-256color
defscrollback 50000
bind ^x
bind x
bind K kill
bind h focus left
bind j focus down
bind k focus up
bind l focus right
bind t focus top
bind b focus bottom
hardstatus alwayslastline
hardstatus string "%{= KW} %H [%S] %{= Kw}|%{-} %-Lw%{= bW}%n%f %t%{-}%+Lw"
#
# http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
#
# %{= wK} : set colors to bright white (W) on bright black (K) and keep current text styles (=)
# %H : hostname
# [ : opening bracket character
# %S : session name
# ] : closing bracket character
# %{= wW} : set colors to white (w) on bright black (K) and keep current text styles (=)
# | : bar character
# ${-} : restore colors to previous colors / undo last color change
# %-Lw : list windows before current window (L [optional] = "include flags")
# %{= bW} : set colors to bright white (W) on blue (b) and keep current text styles (=)
# %f : window flags
# %t : window title
#%{-} : restore colors to previous colors / undo last color change
# %+Lw : list windows after current window (L [optional] = "include flags")
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment