Automating terminals at startup

Is there any way to automate a bunch of terminals starting up at once. I find myself opening several windows and running the same sequence of commands in various tabs. I'd like to stick all this in a single shell file (so I could keep it in version control, share it, etc) rather than have to add it all to a GUI.

Ideally with iTerm, but automating with any terminal program would be interesting to hear about.


You could run your shell script from ~/.bashrc. Then no matter which client you use it will be executed when you open a new shell.