chuan 95e3ddbd9c feat: add install command to configure statusLine in settings.json
- locate Claude config via CLAUDE_CONFIG_DIR or ~/.claude
- scope arg: user (default), project, or local
- preserve existing settings and key order; back up to .bak
- set statusLine command to the quoted current executable path (handles spaces)
2026-06-25 19:09:37 +08:00

statusline

显示内容

示例 说明
模型 + 思考 H opus-4.8 思考等级(L/M/H/XH)+ 模型名;等级按高低绿→红配色
上下文 8.9% 已用上下文百分比,按用量绿→红渐变(80% 纯红)
目录 project 在项目根显示目录名,否则显示末两级 parent/current
Git main ~15 +595 分支 + 改动文件数 + 增删行数(为 0 不显示)
速度 ↑ 1.2k ↓ 134.4 t/s 最近 8 次请求的输入/输出 token 速度
额度 10% - 40% · 1:45 5h 已用 - 7 天已用 · 5h 刷新倒计时(越近越红)

接入 Claude Code

编辑 ~/.claude/settings.json,把 statusLine.command 指向构建产物(用正斜杠路径):

{
  "statusLine": {
    "type": "command",
    "command": "statusline"
  }
}
S
Description
No description provided
Readme
89 KiB
Languages
Rust 100%