diff --git a/home-configs/claude/statusline-command.sh b/home-configs/claude/statusline-command.sh index eeffdb8..58e60a1 100644 --- a/home-configs/claude/statusline-command.sh +++ b/home-configs/claude/statusline-command.sh @@ -6,6 +6,7 @@ five_pct=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empt five_reset=$(echo "$input" | jq -r '.rate_limits.five_hour.resets_at // empty') week_pct=$(echo "$input" | jq -r '.rate_limits.seven_day.used_percentage // empty') week_reset=$(echo "$input" | jq -r '.rate_limits.seven_day.resets_at // empty') +ctx_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty') branch=$(git -C "$cwd" --no-optional-locks symbolic-ref --short HEAD 2>/dev/null) @@ -50,3 +51,5 @@ else printf " \033[00;35m%s:$(printf '%.0f' "$week_pct")%%\033[00m" "$remaining" fi fi + +[ -n "$ctx_pct" ] && printf " \033[00;90mctx:$(printf '%.0f' "$ctx_pct")%%\033[00m"