Macos – have a bunch of tabs set up when I launch Terminal

macmacosshellterminal

Every morning I launch the OS X app Terminal and tediously set up a bunch of tabs…

  • A ssh session to a certain server ($ ssh ...)
  • A script/console session for the Rails app I'm working on ($ cd myapp ; script/console)
  • An autotest session ($ cd myapp ; autotest)

And a few others.

Is there some way I can arrange it so that these tabs and sessions start automatically when I launch Terminal?

(I can't just leave the machine running because it's a laptop and I carry it around here and there.)

Best Answer

Go to Terminal's Preferences and create terminal settings for each tab that you want. You'll see a bunch of default configurations already listed (basic, grass, etc); modify those or create your own to set any colors you want for each tab/window. Then go to the shell tab and fill out the Run command box with ssh ... or whichever command you want.

Then open up the tabs and arrange them however you want them to be at startup. Then go to Window >> Save Windows As Group, and check the box to use them when Terminal starts.

Related Question