This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Claude Code custom status line. | |
| # Receives the session JSON on stdin and prints one colored status line: | |
| # <dir>[<branch>] | <model> | Context <bar> NN% | Tokens: N.NK | Cost: $N.NN | |
| input=$(cat) | |
| # --- ANSI colors --- | |
| GREEN=$'\033[1;32m' # directory name | |
| MAGENTA=$'\033[35m' # git branch + cost |