Skip to content

About

Useful Claude Code customizations and scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

claude-tidbits

Useful customizations and scripts for Claude Code.

statusline-command.sh

A custom status line script for Claude Code that displays:

[Claude Opus 4.6] 📁 my-project | 🌿 main
████░░░░░░ 42% | $1.25 | ⏱️ 5m 45s

Line 1: Model name, project directory (clickable link to GitHub repo), git branch

Line 2: Context window usage bar, session cost, elapsed time

Features

  • Bold ANSI colors that work on both light and dark terminal themes
  • Context bar changes color: green < 70%, yellow 70-89%, red 90%+
  • Project folder name is a clickable terminal hyperlink to the GitHub repo (OSC 8)
  • Git info (branch + remote URL) cached for 5 seconds to keep the status line fast

Setup

  1. Copy the script:
cp statusline-command.sh ~/.claude/statusline-command.sh
chmod +x ~/.claude/statusline-command.sh
  1. Add to ~/.claude/settings.json:
{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline-command.sh"
  }
}
  1. Restart Claude Code.

About

Useful Claude Code customizations and scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages