Tab Title Behavior
Termy includes a sophisticated tab title system that automatically updates based on shell activity.How tab titles are determined:
smart- Intelligently choose the best title source- Other modes available (see documentation)
Comma-separated priority list for tab title sources:
manual- User-set title via “Rename Tab”explicit- OSC sequences with the explicit prefixshell- Shell integration (prompt/command)fallback- Default fallback title
Default tab title when no other source is available.
How Tab Titles Work
Termy uses multiple sources to determine tab titles:- Manual - When you rename a tab via
Cmd+Shift+Ror the menu - Explicit - Applications can set titles using OSC sequences with the configured prefix
- Shell - Shell integration captures current directory and running commands
- Fallback - The default title when nothing else is available
tab_title_priority setting controls which source wins when multiple are available.
Shell Integration
Export
TERMY_* environment variables for shell hooks.When enabled, Termy sets environment variables that your shell can use to report current directory and running commands.Template for prompt-derived tab titles. Available variables:
{cwd}- Current working directory- Other template variables may be supported
Template for command-derived tab titles. Available variables:
{command}- Currently running command- Other template variables may be supported
Shell Integration Examples
Explicit Title Prefix
Prefix used for explicit OSC title payloads.Applications can set tab titles by sending OSC sequences starting with this prefix. This prevents conflicts with other terminal title-setting applications.
Using Explicit Titles
Applications can set tab titles using OSC sequences:Tab Strip Appearance
When tab close buttons are visible:
active_hover- Show on active tab when hoveringalways- Always show close buttonsnever- Never show close buttonshover- Show when hovering any tab
How tab widths react to active state:
active_grow_sticky- Active tab grows and stays expandedequal- All tabs have equal widthactive_grow- Active tab grows temporarily
Tab Strip Examples
Tab Title Examples
Simple Static Titles
Directory-Focused Titles
Manual Control
Renaming Tabs
You can manually rename tabs at runtime:- Keyboard: Press
Cmd+Shift+R(macOS) orCtrl+Shift+R(other platforms) - Command Palette:
Cmd+P→ “Rename Tab” - Menu:
File > Rename Tab
manual is in tab_title_priority).