Skip to content

Commit 5555748

Browse files
docs: Add statusline documentation and .env sourcing
- Added header documentation explaining customization options - Added .env sourcing for API keys and custom configuration - Documents PAI_SIMPLE_COLORS option for terminal compatibility - Explains how to comment out lines users don't want - Lists environment variables (DA, DA_COLOR, PAI_SIMPLE_COLORS) Users can now: - Add API keys to .env for custom features (e.g., quote services) - Use PAI_SIMPLE_COLORS=1 for terminals with RGB color issues - Comment out any printf lines they don't need 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ee2e9d5 commit 5555748

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.claude/statusline-command.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
#!/bin/bash
2+
#
3+
# PAI Statusline - Customizable status display for Claude Code
4+
#
5+
# CUSTOMIZATION:
6+
# - This script sources ${PAI_DIR}/.env for API keys and configuration
7+
# - Set PAI_SIMPLE_COLORS=1 in settings.json env for basic ANSI colors
8+
# (fixes display issues on some terminals)
9+
# - To add features requiring API keys (e.g., quotes), add keys to .env
10+
# - Comment out any printf lines you don't want displayed
11+
#
12+
# LINES DISPLAYED:
13+
# 1. Greeting: DA name, model, directory, capabilities count
14+
# 2. MCPs: Active MCP servers with names
15+
# 3. Tokens: Daily usage and cost (requires ccusage)
16+
#
17+
# ENVIRONMENT VARIABLES (set in settings.json env section):
18+
# DA - Your assistant's name (default: "Assistant")
19+
# DA_COLOR - Name color: purple|blue|green|cyan|yellow|red|orange
20+
# PAI_SIMPLE_COLORS - Set to "1" to use basic terminal colors
21+
#
22+
23+
# Source .env for API keys and custom configuration
24+
claude_env="${PAI_DIR:-$HOME/.claude}/.env"
25+
[ -f "$claude_env" ] && source "$claude_env"
226

327
# Read JSON input from stdin
428
input=$(cat)

0 commit comments

Comments
 (0)