setup-statusline
Wire this plugin's status line into the user's Claude Code config. A plugin can't
register the main statusLine setting on its own, so this one-time step does it.
Run the bundled setup script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh"
It:
- Copies
statusline.shto~/.claude/statusline.sh— a stable path that survives uninstalling the plugin (aSessionStarthook keeps it in sync after this). - Adds a
statusLineentry to~/.claude/settings.json, preserving every other setting. If a differentstatusLinewas already set, it backs upsettings.jsontosettings.json.bakfirst.
Then report to the user exactly what the script printed (synced path, whether settings.json changed or was already wired, any backup), and tell them the status line shows up on their next session — or right away if they restart Claude Code.
If the script aborts because settings.json isn't valid JSON, surface that error and
do NOT try to hand-edit the file blindly — show the user the broken file first.