From claude-statusline
Configure terminal width fallback and project path display — fix the 40-char truncation issue, customize width, and adjust path depth
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-statusline:pathThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Configure claude-statusline Terminal Width & Path Display **FIRST**: Use the Read tool to load `~/.claude/plugins/claude-statusline/config.json` if it exists. Store the current config values (especially `terminalWidth`, `pathLevels`, `display.showProject`). --- ## Step 1: Detect Current State Run these commands to understand the current environment: **macOS/Linux**: Record: - Actual terminal width from `tput cols` - Current `terminalWidth` config value - Current `pathLevels` and `display.showProject` --- ## Step 2: Interactive Configuration Use AskUserQuestion. **Ask all questio...
FIRST: Use the Read tool to load ~/.claude/plugins/claude-statusline/config.json if it exists.
Store the current config values (especially terminalWidth, pathLevels, display.showProject).
Run these commands to understand the current environment:
macOS/Linux:
# Detect actual terminal width
echo "Terminal columns (tput): $(tput cols)"
echo "Terminal columns (env): ${COLUMNS:-unset}"
echo "CWD: $(pwd)"
# Show current config if exists
if [ -f "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/claude-statusline/config.json" ]; then
echo "--- Current config ---"
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/claude-statusline/config.json"
fi
Record:
tput colsterminalWidth config valuepathLevels and display.showProjectUse AskUserQuestion. Ask all questions in one batch.
The statusline subprocess cannot detect the real terminal size (stdout.columns/COLUMNS are unavailable), so config.terminalWidth is the authoritative width source. When unset, the HUD falls back to a narrow width and truncates aggressively.
pitpat-server │ tools: 3 │ (feat/nacos_2.5.2*) │ [GLM-5.1]pitpat-server (feat/nacos_2.5.2*) │ [GLM-5.1]pitpat-server)linzikg/pitpat-server)professional/linzikg/pitpat-server)Show preview of HUD at different widths:
(feat/nac... │ [GLM-5.1]pitpat-server (feat/nacos_2.5.2*) │ [GLM-5.1]pitpat-server │ tools: 3 │ (feat/nacos_2.5.2*) │ [GLM-5.1]Summarize changes and ask: "Apply these settings?"
Write to ~/.claude/plugins/claude-statusline/config.json.
Merge with existing config — do NOT overwrite other settings.
| Setting | Config Key | Values |
|---|---|---|
| Terminal width | terminalWidth | number (e.g. 80, 120) — authoritative width; the statusline subprocess cannot detect terminal size |
| Path visibility | display.showProject | true / false |
| Path depth | pathLevels | 1 / 2 / 3 |
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/claude-statusline/config.json" | grep -E '(terminalWidth|showProject|pathLevels)'
Tell the user the changes are applied immediately — no restart needed.
npx claudepluginhub fyeeme/claude-statusline --plugin claude-statusline