← Back to blog

How to Save and Restore Terminal Layouts

GridTerm Team

You spend 5-10 minutes every morning recreating your terminal layout: opening panes, navigating to the right directories, starting dev servers, launching AI agents. That’s an hour per week of repetitive setup.

Here’s how to save your layout once and restore it in one click.

GridTerm has built-in workspace management that saves your complete terminal state.

What gets saved:

  • Grid layout (1x1, 2x2, 2x3, 3x3, or custom splits)
  • Each terminal’s starting directory
  • Each terminal’s auto-run command
  • Terminal names/labels

How to save:

  1. Set up your ideal layout — grid size, directories, processes
  2. Open the Workspace Manager
  3. Click “Save Workspace”
  4. Give it a name (e.g., “Main Project”, “API Development”)

How to restore:

  1. Open the Workspace Manager
  2. Click your saved workspace
  3. Everything loads — grid appears, terminals open to the right directories, commands auto-run

A practical workspace:

TerminalDirectoryAuto-command
Top-left~/projects/appclaude
Top-right~/projects/appnpm run dev
Bottom-left~/projects/appnpm test --watch
Bottom-right~/projects/app— (free terminal)

Create multiple workspaces for different projects. Switch between them in one click.

tmux-resurrect (Linux/macOS)

If you use tmux, the tmux-resurrect plugin saves and restores sessions.

Setup:

  1. Install tmux plugin manager (tpm)
  2. Add to ~/.tmux.conf:
    set -g @plugin 'tmux-plugins/tmux-resurrect'
  3. Install: Ctrl+B I

Save: Ctrl+B Ctrl+S Restore: Ctrl+B Ctrl+R

What gets saved: Pane layout, working directories, and (with configuration) running programs.

Limitations: Doesn’t reliably save all running processes. Auto-commands need manual configuration. Restoration isn’t always 100% — some panes may open to the wrong directory or lose their running process.

For automatic saving, add tmux-continuum:

set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'

Windows Terminal (partial)

Windows Terminal doesn’t have workspace save/restore, but you can configure startup layouts in settings.json.

Multiple tabs with specific profiles:

{
  "startupActions": "new-tab -p \"PowerShell\" -d \"C:\\projects\\app\" ; split-pane -H -p \"PowerShell\" -d \"C:\\projects\\app\""
}

Limitations: Only configures one startup layout (no multiple workspaces). The syntax is complex and error-prone. You can’t switch between different layouts at runtime. Auto-run commands are possible but require additional scripting.

Comparison

FeatureGridTermtmux-resurrectWindows Terminal
Save layoutOne-clickCtrl+B Ctrl+SManual JSON
Restore layoutOne-clickCtrl+B Ctrl+RApp restart only
Multiple workspacesYesNo (one session)No
Save directoriesYesYesYes (JSON)
Save auto-commandsYesPartialComplex
Reliability100%VariableN/A
PlatformWindows, macOSmacOS, LinuxWindows

Why this matters

The 5-10 minutes of daily setup isn’t just about time. It’s about activation energy. When your ideal working state requires 10 steps to reach, you’re less likely to set it up properly. You skip the test runner. You forget to launch the third AI agent. You work with a suboptimal layout because setting up the ideal one feels like too much work.

When the ideal state is one click away, you always start in the right configuration. Every session begins at full productivity instead of ramping up over the first 10 minutes.

That’s the real value of saving terminal layouts — not just saving time, but ensuring you always work in the best environment.

Get GridTerm — $67 one-time purchase