Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shell profiles

Status: accepted. Date: 2026-11-29. Owner approved: yes.

A Profile is a named way to start a Surface: a command line plus the settings that go with it (starting directory, title, icon, tab colour, elevation, and later its appearance). On Windows several shells are usually installed side by side, so Voyager7 offers them the way Windows Terminal and VS Code do: a ▾ button beside + lists the profiles, Ctrl+Shift+1…9 open them, the palette and the terminal context menu can open a tab or split with any of them, and the Settings window edits them.

The main configuration stays pure Ghostty: each profile is a Ghostty configuration fragment in its own file (owner decision 2026-11-29, which replaced a first draft of NAME=VALUE keys in the main file).

Enabling

v7-profiles = true|false turns the feature on. The default is true on Windows and false on Linux and macOS (owner decision 2026-11-29); an empty value resets to the platform default. When false there is no ▾ button, no profile menus or palette entries, the profile actions are not performable (so Ctrl+Shift+1…9 reach the program) and every Surface runs Ghostty's command, else the platform shell, exactly as without this ADR.

Profile files

%APPDATA%\Voyager7\config                  main configuration, pure Ghostty
%APPDATA%\Voyager7\profiles\Work.ghostty   the profile "Work"
%APPDATA%\Voyager7\profiles\Git Bash.ghostty

With --config PATH, profiles are in the profiles folder beside that file. The file name without .ghostty is the profile's identity, compared without regard to case (the Windows file system's rule). A profile file uses Ghostty's syntax and Ghostty's keys:

# profiles\Work.ghostty
command = pwsh.exe -NoLogo
working-directory = D:\work
title = Build
v7-profile-icon = C:\Program Files\PowerShell\7\pwsh.exe
v7-profile-tab-color = #2d6cdf

A tab opened with a profile gets the main configuration (files, includes and CLI overrides, as today) followed by the profile file, exactly as if the file were one more config-file include loaded last. So a profile file means the same thing to Voyager7 as it would to Ghostty given as a final --config-file, and per-profile appearance needs no new syntax later.

Profile-scoped keys (the only ones a profile may change):

KeyMeaning in a profile
commandThe profile's command (Ghostty semantics, direct: / shell:).
working-directoryhome, inherit or a path (Ghostty semantics; inherit is WT's "Use parent process directory").
titleFixed tab title (Ghostty semantics).
shell-integration, shell-integration-featuresAs in Ghostty, for that profile's Surfaces.
config-fileIncludes, relative to the profile file, deferred as in Ghostty.
theme and the colour keysFor that profile's Surfaces (ADR 0016), over the main configuration's colours.
The font keys (font-family, font-size, font-feature, font-variation*, font-style*), cursor-style, cursor-style-blink and envFor that profile's Surfaces, over the main configuration's (added 2026-11-30). Each Surface measures and draws with its own font, so tabs and splits with different cell sizes share a window; one engine per distinct font configuration per window, reused by every Surface with the same one.
Other appearance keys (adjust-*, background-*, selection-*, …)Later. Reported "not supported in a profile yet".

Voyager7-only metadata, valid only in a profile file:

KeyValueDefault
v7-profile-nameName shown in menus and tabsthe file name
v7-profile-icon.ico, .exe or .dll, optional ,INDEXdetected, else the command's program
v7-profile-tab-colorA Ghostty colour (Ghostty has no tab colour key)none
v7-profile-elevatetrue|false: run as Administratorfalse
v7-profile-hiddentrue|false: keep out of menus and numberingfalse
v7-profile-path-styleauto|windows|cmd|powershell|nushell|wsl|cygwin|msys2|mingw: how dropped files' paths are written (v7_core::drop_paths)auto: from the command

Application- and window-scoped keys (keybind, class, quit-after-last-window-closed, window-*, v7-conpty, …) have no per-tab meaning and are reported once per file as "applies to the whole application; ignored in a profile". v7-profile-* keys in the main file are reported as "only in a profile file".

Main-file keys:

KeyValueDefault
v7-profilestrue|falsetrue on Windows, false elsewhere
v7-profile-detecttrue|false: add installed shellstrue
v7-default-profileA profile namesee below
v7-profile-orderRepeatable names; listed profiles first, in that ordernone

The default profile is a main-file key, not a per-file flag, so two files can never both claim it.

Detected profiles

Installed shells (below) are built-in, in-memory profiles: a detected layer with command and v7-profile-icon between the main configuration and the profile file. A profile file with a detected profile's name overrides it (a file with only v7-profile-hidden = true hides it; one with command = changes it). Detected profiles cannot be deleted, only hidden.

Layer order for a tab: main files, includes and CLI → detected layer (if the name is detected) → profile file and its includes. Launch options (--command=, -e, --working-directory=, --title=) win over all of them for the Surface they start.

Ghostty's command and initial-command

Both are implemented with Ghostty's meaning.

  • command in the main file (also --command=) is what the default profile runs when v7-default-profile is unset, and what a profile file without its own command runs (it inherits the main configuration). Voyager7 shows it as a profile named after its program (nu), first.
  • initial-command and -e run only for the first Surface (Ghostty). Before this ADR Voyager7 also used -e for later tabs; that deviation is removed.
  • direct: is removed (CreateProcess never uses a shell); shell: runs the rest through %COMSPEC% /c.

--v7-profile=NAME (CLI, +new-window, +new-tab) starts the first Surface with that profile. It is a launch option, like --title=.

Default profile

v7-default-profile names the profile +, Ctrl+Shift+T (new_tab), new_window, new_split and Voyager7's first window use. Unset: the command profile when command is set, else Command Prompt (%COMSPEC%), which is what Voyager7 ran before profiles, so every existing configuration starts the same shell.

Detection

Only the file system and the registry are read: no process is started, nothing is loaded, network drives are skipped. Startup resolves the default profile without detection unless the default names a detected shell; the full list is built on first use (a menu, the palette, Ctrl+Shift+N, Settings) and again on reload. Measured on the QEMU VMs: 0.7–1.4 ms for a full pass.

ProfileFound atCommandIcon
Command Prompt%COMSPEC%, else %SystemRoot%\System32\cmd.exeas foundcmd.exe
Windows PowerShell%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exeas foundpowershell.exe
PowerShell (7+)%ProgramFiles%\PowerShell\<N>\, %ProgramFiles(x86)%\PowerShell\<N>\, the msix aliases under %LOCALAPPDATA%\Microsoft\WindowsApps, %USERPROFILE%\.dotnet\tools, %USERPROFILE%\scoop\shims, else PATH"…\pwsh.exe"pwsh.exe
Git BashHKLM\SOFTWARE\GitForWindows\InstallPath, %ProgramFiles%\Git, %ProgramFiles(x86)%\Git, %LOCALAPPDATA%\Programs\Git, scoop, else git.exe on PATH"…\bin\bash.exe" --login -igit-bash.exe
Nushell%ProgramFiles%\nu\bin, %LOCALAPPDATA%\Programs\nu\bin, WinGet links, %USERPROFILE%\.cargo\bin, scoop, else PATH"…\nu.exe"nu.exe
MSYS2C:\msys64 (and %SystemDrive%)…\msys2_shell.cmd -defterm -here -no-start -ucrt64ucrt64.ico / msys2.ico
Cygwin%SystemDrive%\cygwin64, \cygwin"…\bin\bash.exe" --login -iCygwin-Terminal.ico / Cygwin.ico
WSL distributionsHKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\DistributionName (Windows 10+)wsl.exe -d NAME (--cd ~ from build 19041)the distribution's ShortcutPath, else wsl.exe

PowerShell 7 instances are ordered and named as Windows Terminal does (PowershellCoreProfileGenerator.cpp). WSL skips docker-desktop* and rancher-desktop* and reads the registry as WT does instead of running wsl.exe -l as VS Code does. Git Bash, MSYS2 and Cygwin follow VS Code's terminalProfiles.ts. Not sources: Windows Terminal fragments, Visual Studio developer shells, SSH hosts, Azure Cloud Shell (owner). On Linux and macOS (ports to come) /etc/shells is read as VS Code does; the parser is tested now and unused until a port exists.

Order: v7-profile-order, then the command profile, detected profiles in the table's order, then profile files by name. Ctrl+Shift+N counts visible profiles in that order.

Icons

Read with SHDefExtractIconW at the size drawn (16 px times the DPI scale), on first draw, kept for the process; a missing icon draws Voyager7's.

Interface

  • New-tab dropdown: ▾ right of + lists the visible profiles (icon, name, Ctrl+Shift+N; the default in bold), and nothing else: Settings, Command Palette and About are in the ☰ menu (owner feedback 2026-11-29; WT lists them here only because it has no ☰). The ▾ is the + button's twin: the same size, plate, hover and pressed looks, with a DPI-scaled chevron. Click: new tab; Shift+click: new window; Alt+click: split (WT); Shift+Enter and Alt+Enter do the same from the keyboard. A message filter keeps the menu open while Alt is down (a Win32 menu loop otherwise ends on Alt). v7_open_profile_menu opens it from the keyboard: Ctrl+Shift+Space, Windows Terminal's key (owner decision 2026-11-29; pinned Ghostty binds nothing to it).
  • +, new_tab, new_window, new_split use the default profile.
  • Palette: "New Tab…" and "Split…" list the profiles; Backspace on an empty search or Esc goes back.
  • Context menu: the Tab and Split submenus end with one row per profile.
  • Tabs show their profile's icon. A tab colour fills the whole tab, as in Windows Terminal (owner decision 2026-11-29, replacing a stripe along the top): the active tab in the colour; an inactive tab in a darker shade, 35% toward a gray of the same lightness and then darkened to 68%; a hovered one halfway between (v7_core::tab_strip::tab_fill). The title and close button are black or white, whichever has the higher WCAG contrast with the fill (readable_on). Profile icons keep their own colours. On Windows 7 the fill takes each chrome's tab shape (the selected tab, the plate, the Classic bevel), opaque on Aero glass, without the glass text glow.
  • Settings: the Profiles category has its own editor. It lists every profile with its icon (the default marked, hidden ones gray) and edits the selected one's name, command line, starting directory (with "Use parent process directory"), icon, tab title, tab colour, Run as Administrator and Hide from menus, with New profile, Delete (your profiles) or Hide (installed shells), Move Up/Down (v7-profile-order), Set as default (v7-default-profile) and the v7-profiles and v7-profile-detect switches. Apply writes each changed file one key at a time (config_edit), so lines it does not change keep their bytes. The Name field renames the file of a profile of your own, and sets v7-profile-name for an installed shell.

Keys

v7_new_tab_profile:N, v7_new_split_profile:N, v7_new_window_profile:N (N counts visible profiles from 1) and v7_open_profile_menu. Defaults: performable:ctrl+shift+digit_1 … digit_9 = v7_new_tab_profile:1 … 9, Windows Terminal's keys. Pinned Ghostty binds no Ctrl+Shift+digit, so none of Ghostty's defaults change; performable: lets the key reach the program when that profile does not exist or profiles are off. Digits match physically, so layouts where Shift+digit types a symbol work.

Jump list and dropped files (added 2026-11-30)

  • Jump list: the taskbar button's Tasks list the visible profiles in menu order with their icons, then a separator and "New window" (ICustomDestinationList, Windows 7+, as Windows Terminal and ConEmu). A task runs voyager7.exe [--class=CLASS] --v7-profile=KEY, which is a taskbar launch: it joins the running instance of that class as a new window (ADR 0014's new-instance behaviour) or starts one; an elevated profile asks for UAC as from the ▾. Written after the first frame and after a reload that changes it (the profile editor's Apply reloads); the uninstaller deletes the uninstalling user's list. A WSL distribution's icon is a Start menu shortcut, which a task cannot show, so its task shows wsl.exe's.
  • Dropped files: their paths are written for the split's profile: v7-profile-path-style, else detected from the command it started (cmd, PowerShell, Nushell, WSL, Cygwin, MSYS2/Git Bash, else quoted Windows paths); a console Windows handed over is "else". See the README for the rules.

Run as Administrator

From a process that is not elevated, an elevated profile starts voyager7.exe --class=… --v7-profile=NAME --working-directory=DIR with the runas verb (ShellExecuteW, Windows 7 and later). The elevated process joins an elevated Voyager7 of the same class (the IPC endpoint already names the elevation, docs/w68) or opens its own window. From an elevated process it opens in place. Declining the UAC prompt does nothing.

Accepted trade-offs

  1. Repeatable keys append, as in Ghostty includes: a profile's font-family or palette adds to the main file's list unless the profile first writes font-family =. This is Ghostty's include rule, kept on purpose; the Settings editor writes the reset line for the user.
  2. Scope: Ghostty has no per-surface configuration, so Voyager7 defines which keys are profile-scoped (table above). Everything else in a profile file is diagnosed and ignored, which a Ghostty user may not expect.
  3. Precedence over the CLI: a profile file loads after CLI overrides, so voyager7 --font-size=20 loses to a profile's font-size. The profile is the more specific choice; launch options still win.
  4. Order is not expressible with files: v7-profile-order in the main file, else names sort.
  5. Names are file names: \ / : * ? " < > |, trailing dots and spaces and device names (CON, NUL) cannot be used; v7-profile-name shows any name. Renaming in Settings renames the file.
  6. Detected names can move: with two pwsh installs, "PowerShell" is the best one, which changes when a newer one is installed, so an override file follows the name, not the install (Windows Terminal has the same issue).
  7. Including a profile from the main file (config-file = profiles/Work.ghostty) applies it to every tab, as Ghostty would; it is not prevented.
  8. Tools: +show-config and +validate-config gain --v7-profile=NAME to show or check one profile's effective configuration; without it they validate every profile file.
  9. Cost: the profiles folder is listed and every file parsed on first use and on reload (bounded: 64 files, the usual 1 MiB and include limits); startup reads only the default profile's file.

Seams left for later

Per-profile colours and themes are done (ADR 0016): a Surface keeps its profile name and re-reads them on reload. Fonts, cursors and env are done the same way (2026-11-30); the other appearance keys stay application-wide for now. Startup-page items other than the default profile, and the default terminal application, are separate work.

Consequences

  • Every existing Ghostty and Voyager7 configuration starts the same shell as before; the main file never needs a Voyager7 key for profiles.
  • -e applies only to the first Surface (Ghostty).
  • Ctrl+Shift+1…9 open profiles on Windows; keybind = ctrl+shift+digit_1=unbind or v7-profiles = false gives them back.