Customizing screen using screenrc

This is my current .screenrc  file, it includes a nice status bar (hardstatus) and easy window switching by using Alt+Left/Right Arrow Keys

hardstatus alwayslastline
hardstatus string "%{= KW}%-Lw%{+b Bw}%50>%n-%f %t%{-}%+Lw%< %=%C%a %Y-%M-%d"

bindkey ^[[1;3D prev # Alt+Left = Previous Window
bindkey ^[[1;3C next # Alt+Right = Next Window

defscrollback 2000 # Keep a lot of history

bind c screen 1 # Start numbering at 1

This can be copied to any machine and placed in the home directory of the user (~), or manually sourced inside screen by pressing Ctrl+A and then typing :source <path_to_screenrc>

 

Result:

 

Leave a Reply

Your email address will not be published.