mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-09-10 04:19:24 +00:00
Update ccusage example to use @latest syntax for npx to ensure the version with statusline support is retrieved
This commit is contained in:
@@ -190,7 +190,7 @@ Execute shell commands and display their output dynamically:
|
||||
- `git rev-parse --short HEAD` - Show current commit hash
|
||||
- `date +%H:%M` - Display current time
|
||||
- `curl -s wttr.in?format="%t"` - Show current temperature
|
||||
- `npx -y ccusage statusline` - Display Claude usage metrics (set timeout: 5000ms)
|
||||
- `npx -y ccusage@latest statusline` - Display Claude usage metrics (set timeout: 5000ms)
|
||||
|
||||
> ⚠️ **Important:** Commands should complete quickly to avoid delays. Long-running commands will be killed after the configured timeout. If you're not seeing output from your custom command, try increasing the timeout value (press 't' in the editor).
|
||||
|
||||
@@ -203,7 +203,7 @@ Execute shell commands and display their output dynamically:
|
||||
[ccusage](https://github.com/ryoppippi/ccusage) is a tool that tracks and displays Claude Code usage metrics. You can integrate it directly into your status line:
|
||||
|
||||
1. Add a Custom Command widget
|
||||
2. Set command: `npx -y ccusage statusline`
|
||||
2. Set command: `npx -y ccusage@latest statusline`
|
||||
3. Set timeout: `5000` (5 seconds for initial download)
|
||||
4. Enable "preserve colors" to keep ccusage's color formatting
|
||||
|
||||
|
||||
Reference in New Issue
Block a user