feat(statusline): add custom statusline setup documentation v3.0.1
- english-ultimate-claude-code-guide.md: new "Custom Statusline Setup" section - ccstatusline as recommended solution - Custom script option with JSON stdin format - cheatsheet-en.md: added statusline quick reference - Version bump to 3.0.2 across files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c6833b615e
commit
5830990e9b
2 changed files with 48 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
**Written with**: Claude (Anthropic)
|
||||
|
||||
**Version**: 2.8.1 | **Last Updated**: January 2026
|
||||
**Version**: 3.0.2 | **Last Updated**: January 2026
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -127,6 +127,11 @@ Model: Sonnet | Ctx: 89.5k | Cost: $2.11 | Ctx(u): 56.0%
|
|||
```
|
||||
**Watch `Ctx(u):`** → >70% = `/compact`, >85% = `/clear`
|
||||
|
||||
**Enhanced statusline ([ccstatusline](https://github.com/sirmalloc/ccstatusline)):** Add to `~/.claude/settings.json`:
|
||||
```json
|
||||
{ "statusLine": { "type": "command", "command": "npx -y ccstatusline@latest", "padding": 0 } }
|
||||
```
|
||||
|
||||
### Actions by Symptom
|
||||
|
||||
| Sign | Action |
|
||||
|
|
@ -373,4 +378,4 @@ where.exe claude; claude doctor; claude mcp list
|
|||
|
||||
**Author**: Florian BRUNIAUX | [@Méthode Aristote](https://methode-aristote.fr) | Written with Claude
|
||||
|
||||
*Last updated: January 2026 | Version 2.8.1*
|
||||
*Last updated: January 2026 | Version 3.0.2*
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
**Last updated**: January 2026
|
||||
|
||||
**Version**: 2.9.9
|
||||
**Version**: 3.0.2
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -987,6 +987,45 @@ Claude Code │ Ctx(u): 45% │ Cost: $0.23 │ Session: 1h 23m
|
|||
| `Cost: $0.23` | API cost so far |
|
||||
| `Session: 1h 23m` | Time elapsed |
|
||||
|
||||
### Custom Statusline Setup
|
||||
|
||||
The default statusline can be enhanced with more detailed information like git branch, model name, and file changes.
|
||||
|
||||
**Option 1: [ccstatusline](https://github.com/sirmalloc/ccstatusline) (recommended)**
|
||||
|
||||
Add to `~/.claude/settings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"statusLine": {
|
||||
"type": "command",
|
||||
"command": "npx -y ccstatusline@latest",
|
||||
"padding": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This displays: `Model: Opus 4.5 | Ctx: 0 | ⎇ main | (+0,-0) | Cost: $0.27 | Session: 0m | Ctx(u): 0.0%`
|
||||
|
||||
**Option 2: Custom script**
|
||||
|
||||
Create your own script that:
|
||||
1. Reads JSON data from stdin (model, context, cost, git info)
|
||||
2. Outputs a single formatted line to stdout
|
||||
3. Supports ANSI colors for styling
|
||||
|
||||
```json
|
||||
{
|
||||
"statusLine": {
|
||||
"type": "command",
|
||||
"command": "/path/to/your/statusline-script.sh",
|
||||
"padding": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Use `/statusline` command in Claude Code to auto-generate a starter script.
|
||||
|
||||
### Context Zones
|
||||
|
||||
| Zone | Usage | Action |
|
||||
|
|
@ -9009,4 +9048,4 @@ Thumbs.db
|
|||
|
||||
**Contributions**: Issues and PRs welcome.
|
||||
|
||||
**Last updated**: January 2026 | **Version**: 2.9.9
|
||||
**Last updated**: January 2026 | **Version**: 3.0.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue