Expand description
setup subcommand: copies the running binary to a stable location, installs
the slash commands and points Claude Code’s statusLine at the installed binary.
npm runs the binary from its package cache, so statusLine.command must never
point at current_exe(); it points at the copy in ~/.claude/statusline/bin/.
Structs§
- Status
Line Plan - A pending change to Claude Code’s
statusLinesetting.
Enums§
Constants§
Functions§
- install_
binary - Copy
sourcetotarget, replacing an existing binary without a window wheretargetis missing or half-written. - plan_
statusline - Work out the
statusLinevalue forcommand. Our own entry keeps its extra keys (padding, refreshInterval, …); anything else is replaced with the defaults. ReturnsNonewhen the settings already point atcommand. - remove_
legacy_ files - Remove files left behind by installs ≤ 1.2.x (binary outside
bin/, quota cache). Only call oncestatusLineno longer points at the legacy binary. - run
- Entry point for
claude-code-status-line setup [--yes]. Returns the exit code. - statusline_
command statusLine.commandfor the binary installed in~/.claude/statusline/bin/.- update_
claude_ settings - Point
statusLinein Claude Code’ssettings.jsonatcommand.confirmsees the plan before anything is written; the previous file is kept as a numbered backup.