Control Windows Terminal tab title and color from within Copilot CLI sessions.
- PowerShell 7+ (pwsh)
- Windows Terminal
- GitHub Copilot CLI
- Copy this folder to
~/.copilot/skills/windows-terminal/ - Add to your PowerShell
$PROFILE:Import-Module "$env:USERPROFILE\.copilot\skills\windows-terminal\WindowsTerminalSkill.psd1"
- Restart your terminal
From inside a Copilot CLI session:
!tab "Bug Fix" red
!tab "Feature Work" green
!tab "Research" blue
!tab "My Task" # default purple
| Color | Alias | Hex |
|---|---|---|
| red | bug | E74C3C |
| green | feature | 2ECC71 |
| blue | research | 3498DB |
| purple | refactor | 9B59B6 |
| orange | devops | E67E22 |
| yellow | test | F1C40F |
| pink | - | E91E63 |
| cyan | - | 00BCD4 |
Or use any 6-digit hex color: !tab "Custom" "FF5733"
Uses Windows Terminal's OSC 4 escape sequence with color table index 264 (FRAME_BACKGROUND) to set the tab color. The ! prefix in Copilot CLI runs commands in the parent shell context where the escape codes reach Windows Terminal directly.
WindowsTerminalSkill.psm1- PowerShell moduleWindowsTerminalSkill.psd1- Module manifestSKILL.md- Copilot skill definitionREADME.md- This file
MIT