hubertf's NetBSD Blog
Send interesting links to hubert at feyrer dot de!
 
[20090625] window(8) and .windowrc
I've used window(8) the past few days, and felt an urge to start up with some pre-defined windows. Unfortunately the manpage wasn't that obvious, and examples are scarce. In the end, I managed to get what I want, which I'm posting here as example code.

The following .windowrc will start two windows, the upper one with 1/3rd of the screen running tcpdump, the lower with a shell in it:

# cat .windowrc
window r=1, nr=$nrow/3-1, l=tcpdump\ pcn0, sh=tcpdump \-ni pcn0
window r=$nrow/3, nr=2*$nrow/3+1


[Tags: ]


Disclaimer: All opinion expressed here is purely my own. No responsibility is taken for anything.

Access count: 36038694
Copyright (c) Hubert Feyrer