brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Terminal can save your windows and tabs as a window group

Terminal
~/tips/tip-terminal-save-windows-as-group

cat ~/tips/tip-terminal-save-windows-as-group.md

Save a set of Terminal windows and tabs under a name and reopen them in one click.

I have a few layouts I rebuild by hand again and again: one window for logs, one for a build, a few tabs for SSH. Terminal can remember the whole arrangement.

Set the windows up the way you want, with the right profile and tabs in each. Then choose Window > Save Windows as Group and give the group a name. The window settings and tabs are saved with it.

The dialog has two options:

  • Restore all commands brings back remote connections and commands that are safe to run without confirmation.
  • Use window group when Terminal starts opens these windows every time you launch Terminal.

To open a group later, choose Window > Open Window Group and pick its name from the list.

Groups are managed in Terminal > Settings > Window Groups. Select a group there and click the Remove button to delete it. The Action pop-up menu there has Import and Export, or you can drag a group between the list and Finder. Group files end in .terminal, so you can copy a layout to another Mac.

I’d start with the startup option off. A group that opens by itself and runs remote connections every time you start Terminal is something you want to pick on purpose.

One caveat: Apple says “Restore all commands” only restores commands that are safe to run without confirmation, Check each tab after you open the group.

Further reading: Use Terminal window groups on Mac – Apple Support

Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away

More Terminal tips ioreg -rn AppleSmartBattery | grep CycleCount Export a Terminal profile to a .terminal file and import it on another Mac mc hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' sudo tmutil restore -v "/Volumes/Backup Disk/Backups.backupdb/My Mac/2026-11-30-120000/Macintosh HD – Data/Users/me/Documents/report.pdf" ~/Desktop/ All Terminal tips (116) All topics

Link