diff --git a/cheatsheet-en.md b/cheatsheet-en.md index 6531976..7f1e5ec 100644 --- a/cheatsheet-en.md +++ b/cheatsheet-en.md @@ -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* diff --git a/english-ultimate-claude-code-guide.md b/english-ultimate-claude-code-guide.md index 23629ee..a36af9f 100644 --- a/english-ultimate-claude-code-guide.md +++ b/english-ultimate-claude-code-guide.md @@ -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