@@ -17,11 +17,11 @@ config:install-status-line
1717The ` config:install-status-line ` command installs a custom status line script to ` ~/.claude/status_line.sh ` .
1818This status line displays session information including:
1919
20- - Claude Code version
21- - Active model name
22- - Git branch or current directory
23- - Output style
24- - Most recent user prompt (only if session-prompt-hook is installed)
20+ - 📦 Claude Code version
21+ - 🧬 Active model name
22+ - 🗂️ Git branch with path context (parent/ current directory)
23+ - 🎨 Output style
24+ - 💬 Most recent user prompt (only if session-prompt-hook is installed)
2525
2626The status line works fully without the prompt hook.
2727The prompt hook is optional and only adds minimal extra context by showing your last prompt.
@@ -39,11 +39,11 @@ The prompt hook is optional and only adds minimal extra context by showing your
3939 {
4040 "statusLine" : {
4141 "type" : " command" ,
42- "command" : " /home/USERNAME /.claude/status_line.sh"
42+ "command" : " $HOME /.claude/status_line.sh"
4343 }
4444 }
4545 ```
46- - Replace `USERNAME ` with the actual username
46+ - Replace `$HOME ` with the actual `$HOME` environment variable
4747 - If settings.json already has other content, merge this configuration
4848 - Restart Claude Code or start a new session for changes to take effect
4949
@@ -95,14 +95,14 @@ The prompt hook is optional and only adds minimal extra context by showing your
9595 {
9696 "statusLine": {
9797 "type": "command",
98- "command": "/home/YOUR_USERNAME /.claude/status_line.sh"
98+ "command": "$HOME /.claude/status_line.sh"
9999 }
100100 }
101101
102102 Then restart Claude Code or start a new session.
103103
104104 Status line format:
105- [ version] | [ model] | [ branch/dir ] | [ style] | [ last prompt...]
105+ 📦 [ version] | 🧬 [ model] | 🗂️ [ parent/current : branch ] | 🎨 [ style] | 💬 [ last prompt...]
106106 ```
107107
1081082. **Full setup with prompt hook**:
@@ -114,25 +114,29 @@ The prompt hook is optional and only adds minimal extra context by showing your
114114
115115## Status Line Format
116116
117- The status line displays information with color-coded sections:
117+ The status line displays information with emojis and color-coded sections:
118118
119- - **Purple**: Claude Code version
120- - **Blue**: Active model display name
121- - **Green**: Git branch name or current directory
122- - **Yellow**: Output style name
123- - **Grey**: Last user prompt (truncated at 50 chars)
119+ - 📦 **Purple**: Claude Code version
120+ - 🧬 **Blue**: Active model display name
121+ - 🗂️ **Green (dark/light)**: Path context (parent/current directory) and git branch
122+ - Parent directory truncated to 10 chars, current folder to 20 chars
123+ - Format: `parent/current:branch` (if in git repo) or `parent/current` (if not)
124+ - 🎨 **Yellow**: Output style name
125+ - 💬 **Grey**: Last user prompt (truncated at 50 chars)
124126
125127Example output:
126128```
127- v1.2.3 | Sonnet 4.5 | main | default | I would like to contribute ~ /.clau...
129+ 📦 v1.2.3 | 🧬 Sonnet 4.5 | 🗂️ openshift/ai-helpers : config-plugin | 🎨 default | 💬 I would like to contribute ~ /.clau...
128130```
129131
130132## Notes
131133
132134- The status line works fully without the session-prompt-hook installed
133- - If session-prompt-hook is installed, it reads prompts from `/tmp/prompts-{session_id}.txt` for display
134- - If no git repository is found, displays the current directory name
135- - Colors use matte ANSI codes for terminal compatibility
135+ - If session-prompt-hook is installed, it reads prompts from `/tmp/claude-sessions/prompts-{session_id}.txt` for display
136+ - If no git repository is found, displays the path context (parent/current directory)
137+ - Colors use matte ANSI codes for terminal compatibility, with dark/light green variants for better visual hierarchy
138+ - Directory truncation: parent directory to 10 chars, current folder to 20 chars
139+ - Emojis provide quick visual scanning: 📦 version, 🧬 model, 🗂️ location, 🎨 style, 💬 prompt
136140- Status line is updated on every prompt submission
137141- The prompt hook is optional and provides minimal additional context
138142
0 commit comments