Setting up a Terminal profile the way you like it takes a while: colours, font, window size, what the Option key does. I’d rather not do it twice.
A profile is a set of style and behaviour settings for a Terminal window. Apple lists its tabs: Text (colours, fonts, background, cursor), Window (title, size, scrollback), Tab, Shell (startup and exit behaviour), Keyboard (function keys, the Option key) and Advanced (terminal type, input, bell, encodings).
To export one:
- Choose Terminal > Settings and click Profiles.
- Select the profile, click the Action pop-up menu and choose Export.
- Enter a file name and click Save. You can also drag the profile from the list into Finder.
The file ends in .terminal. To import it on another Mac, open the same Profiles pane, choose Import from the Action menu, select the file and click Open. Dragging the file from Finder into the profiles list works as well.
The same Action menu has Duplicate Profile. That is a good way to try a change: duplicate, rename the copy, and experiment there.
Window groups use the same .terminal ending, so check which kind of file you are importing. Profiles go in the Profiles pane, groups in the Window Groups pane.
One caveat: Apple’s page does not say where Terminal saves an exported file by default, so pick a folder in the Save dialog. It also says nothing about moving profiles between different macOS versions, so I’d test an import before wiping anything.
Further reading: Import and export Terminal profiles – Apple Support, Use profiles to change the look of Terminal windows – Apple Support
Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away