When I use terminal on OSX, I normally have console terminal open with a number of different tabs. In one of those tabs I have a localhost server and in another tab I have a different localhost server. I have saved this window configuration as a windows group that is reopened when I restart terminal, say upon rebooting.

When I restart terminal, I want the two tabs with servers in them to restart the servers.

How do I do this?

  • 3
    Can you give some more detail on exactly what you are trying to do? Commented Aug 6, 2019 at 0:09
  • I have added some more information to the question.
    – Obromios
    Commented Aug 7, 2019 at 1:45

1 Answer 1


This may help you. Go to Preferences under the Terminal menu and a panel opens. Click on the Profiles icon on the top left of the panel. This opens a new panel as shown below.

enter image description here

Click on the shell tab at the top of the new panel. The first item, as shown in the image, is where you can define a command or commands to run when the tab is opened.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .