Skip to content

Instantly share code, notes, and snippets.

View JayeHa's full-sized avatar
🌀

정원 JayeHa

🌀
  • Seoul, Republic of Korea
View GitHub Profile
@JayeHa
JayeHa / statusline-command.sh
Last active April 30, 2026 05:27
Claude Code 상태바 커스터마이징 — ctx·제한량·비용 3줄 표시
#!/usr/bin/env bash
# Claude Code status line — 3-line fixed format
input=$(cat)
model=$(echo "$input" | jq -r '.model.display_name // ""')
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // ""')
dir_name=$(basename "$cwd")
branch=$(GIT_OPTIONAL_LOCKS=0 git -C "$cwd" symbolic-ref --short HEAD 2>/dev/null)
used=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // empty')