GNU Screen .screenrc file

Here is a copy of the .screenrc file I use on all the Linux machines I use. I’m not sure what I’d do without it.

If you’re using Ubuntu and you’re feeling lazy:

apt-get install screen
wget http://blog.elderec.com/wp-content/uploads/2008/09/screenrc.txt -O ~/.screenrc

Otherwise here are the contents of the .screenrc file.

# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window
bindkey -k F1 prev
bindkey -k F2 next
 
# Window list at the bottom.
hardstatus alwayslastline
hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK} %+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
 
# set the size of the scrollback buffer to 99999 lines (default is 100)
defscrollback 99999
 
# Filename for the paste buffer
bufferfile /home/elderec/screen_buffer.txt
 
# turn off the startup message
startup_message off
 
# Autodetach session on hangup instead of terminating screen completely
autodetach on
 
#midnight commander fix
altscreen on

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment