Skip to content

Instantly share code, notes, and snippets.

@vongillern
Last active July 21, 2026 18:58
Show Gist options
  • Select an option

  • Save vongillern/8f10bc1d28bf330d05d706cb6674c414 to your computer and use it in GitHub Desktop.

Select an option

Save vongillern/8f10bc1d28bf330d05d706cb6674c414 to your computer and use it in GitHub Desktop.
statusline.sh
Update my status line in claude to look roughly like this:
πŸ“ some-repo (main) βž•2 πŸ“3 πŸ—‘οΈ0 | 🧠 45.0k (23%) | πŸ• 18% (142m) | πŸ“… 31% (Tue) | πŸ’° $1.24 | πŸ€– Opus 4.8
Notes:
πŸ“ Directory & git status β€” The current folder's name. If it's a git repo, it also shows the branch in parentheses, followed by counts of your uncommitted changes: βž• files added/untracked, πŸ“ files modified, πŸ—‘οΈ files deleted (a file counts toward a type if either the staged or unstaged column shows it). If it isn't a git repo, it just says (not repo).
🧠 Context window β€” How much of the model's context you've used: the token count (e.g. 45.0k) and the percentage full. The readout turns yellow past 100k tokens and red past 150k, and a ⚠️ warning prepends it once you cross the 200k-token mark.
πŸ• 5-hour quota β€” Your usage of the rolling 5-hour rate limit as a percentage, plus how many minutes (Nm) until that window resets.
πŸ“… Weekly quota β€” Your usage of the 7-day rate limit as a percentage, plus the three-letter day of the week (e.g. Mon) when it resets.
πŸ’° Cost β€” The total dollar cost of the current session.
πŸ€– Model β€” The display name of the model you're currently using.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment