This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Claude Code custom status line — two lines: | |
| # Line 1: folder + full path + git branch (if in a repo) + [model ctx:%] (left) | |
| # Line 2: 5-hour and 7-day usage with color-coded bars + reset countdowns (right-aligned) | |
| # | |
| # Reads the JSON Claude Code pipes to it on stdin. Requires: jq, GNU sed, wc, date. | |
| # Right-alignment uses the COLUMNS env var (Claude Code sets it on v2.1.153+). | |
| # | |
| # Install: | |
| # 1. Save this file (e.g. ~/.claude/statusline.sh) |