Skip to content

Instantly share code, notes, and snippets.

@RickMcKay777
RickMcKay777 / statusline.sh
Created June 23, 2026 17:01
Claude Status Bar
#!/bin/bash
# Claude Code custom status line — two lines:
# Line 1: folder + full path + git branch (if in a repo) + [model ctx:%] (left)
# Line 2: 5-hour and 7-day usage with color-coded bars + reset countdowns (right-aligned)
#
# Reads the JSON Claude Code pipes to it on stdin. Requires: jq, GNU sed, wc, date.
# Right-alignment uses the COLUMNS env var (Claude Code sets it on v2.1.153+).
#
# Install:
# 1. Save this file (e.g. ~/.claude/statusline.sh)