Custom screenrc configuration file

by
on
March 10, 2009

Screen may be the most useful Linux applications when it comes to getting things done through the terminal. This custom screenrc configuration file will provide you with a permanent caption line at the bottom of each window. This caption line will enable you to easily keep track of each terminal window and provide other helpful information such as host and current time.

When screen is invoked, it executes initialization commands from the files “/etc/screenrc” and “.screenrc” in the user’s home directory.

Simply create a file in your home directory with vim or some other editor.

$ vim ~/.screenrc

And place the following line in the file.

caption always "%{Wb} %H %{Bk}| %{Ck}%-w%50>%{Cb} %n %t %{-}%+w%<%{- Wk}%{Bk} | %=%{Wb} %C "

Now launch a new screen session for it to take effect.

Here is an example of what it will look like.

screen_configuration

No Comments
scripts
, , , , ,

Related posts:

  1. How to take a screenshot in Linux using import
  2. Determine file type with the file command
  3. Search for files with the find command
  4. Securely copy remote files with scp
  5. Submit commands as root with sudo

Comments (0)

No comments yet

Trackbacks (0)

No trackbacks yet

Leave a Comment

(displayed with your post)
(will not be published)
(optional)

Copyright 2008-2010 WiredRevolution.com. All rights reserved.