392
edits
No edit summary |
|||
Line 129: | Line 129: | ||
screen -wipe | screen -wipe | ||
== Screen Configuration == | |||
So after you've set up screen and have gotten used to it, you will probably want to configure it a little bit and the way to do this is by creating a ~/.screenrc | |||
To do this just | |||
nano ~/.screenrc | |||
Here's an example of a .screenrc that you may want to use: | |||
hardstatus alwayslastline | |||
hardstatus string '%{= kg}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%? %?%= %{g}][%{Y}%l%{g}]%{=b C}[ %d %M %c ]%{W}' | |||
deflogin off | |||
screen -t irc 1 irssi | |||
screen -t Email/slrn 2 mutt -Z | |||
screen -t heys -L -l 3 | |||
Basically this only really does two things, sets a hardstatus (basically a line that contains some information) and makes it display only on the bottom line and also creates a few new windows. | |||
The new windows created are given names and optionally a number or command (or both). | |||
screen -t irc q irssi | |||
This will create screen window 1, give it the title "irc" and then run irssi when you start screen. | |||
deflogin off | |||
This sets windows logged out by default, which means that you won't have to "mesg n" windows to not receive heys | |||
screen -t heys -L -l 3 | |||
Will create a logged in window specifically for heys. Handy. | |||
All this makes it very simple to restart all your processes if Redbrick ever crashes. | |||
With the above configuration file it will look something like this: | |||
[[Image:screenrc.jpg]] | |||
===More commands=== | ===More commands=== |