Windows PowerShell port of claude-code-terminal-pro by rathi-prashant.
Gruvbox Dark status line for Claude Code showing model name, context usage progress bar, token count, working directory, and git branch.
✦ Opus 4 | [■■■■■■■■■□□□□□□□□□□□] 49% | ↯ 98k/200k | ◆ my-project | ⎋ main
- Windows 10/11 with Windows Terminal (for 24-bit color support)
- PowerShell 5.1+ (pre-installed on Windows 10/11)
- Git (for branch display)
- No other dependencies — no
jq, nobc, no WSL
- Create the scripts directory and copy the script:
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.claude\scripts"
Copy-Item status-line.ps1 "$env:USERPROFILE\.claude\scripts\status-line.ps1"- Add the
statusLineblock to~/.claude/settings.json(replaceYOUR_USERNAME):
{
"statusLine": {
"type": "command",
"command": "powershell.exe -NoProfile -ExecutionPolicy Bypass -File \"C:\\Users\\YOUR_USERNAME\\.claude\\scripts\\status-line.ps1\""
}
}- Restart Claude Code.
| Original (bash/Linux/macOS) | This port (Windows PowerShell) |
|---|---|
bash + jq + bc |
PowerShell 5.1 only, zero dependencies |
jq -r for JSON |
ConvertFrom-Json (built-in) |
bc for math |
[math]::Floor() / [math]::Round() |
echo -e for ANSI |
[char]0x1b + Write-Host |
`u{XXXX} (PS 7+) |
[char]0xXXXX (PS 5.1 compatible) |
basename |
Split-Path -Leaf |
cd + git |
Push-Location/Pop-Location + git |
| Element | Color | Hex |
|---|---|---|
| Model name | Bright teal | #56B6C2 |
| Filled bar | Gruvbox aqua | #8EC07C |
| Empty bar | Near-background | #32302F |
| Brackets | Gruvbox gray | #665C54 |
| Percentage | Bright foreground | #FBF1C7 |
| Token count | Warm yellow | #E0AF68 |
| Directory | Green | #98C379 |
| Git branch | Soft blue | #8FAFD1 |