Skip to content

Commit 65b48d0

Browse files
say8425claude
andcommitted
docs: add worktree support to README and CLAUDE.md
- Add Worktree Support feature to README - Add 🌲 emoji to emoji guide table - Add worktree.ts to CLAUDE.md file tree - Add main project name data source Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6d160eb commit 65b48d0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

β€ŽCLAUDE.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ cc-statusline/
2424
β”‚ β”‚ β”œβ”€β”€ index.ts # barrel re-export
2525
β”‚ β”‚ β”œβ”€β”€ branch.ts # getBranchCached
2626
β”‚ β”‚ β”œβ”€β”€ changes.ts # getGitChangesCached
27-
β”‚ β”‚ └── pr.ts # getPrUrlCached
27+
β”‚ β”‚ β”œβ”€β”€ pr.ts # getPrUrlCached
28+
β”‚ β”‚ └── worktree.ts # getMainProjectNameCached
2829
β”‚ β”œβ”€β”€ usage/
2930
β”‚ β”‚ β”œβ”€β”€ index.ts # barrel re-export
3031
β”‚ β”‚ β”œβ”€β”€ token.ts # getAccessToken, getAccessTokenCached
@@ -56,6 +57,7 @@ cc-statusline/
5657
| Git 브랜치 | `git branch --show-current` |
5758
| Git diff | `git diff --shortstat` |
5859
| PR URL | `gh pr view` |
60+
| 메인 ν”„λ‘œμ νŠΈλͺ… | `git rev-parse --git-common-dir` (μ›Œν¬νŠΈλ¦¬) |
5961
| 블둝 μ‚¬μš©λŸ‰ | Anthropic Usage API (`/api/oauth/usage`, OAuth 토큰) |
6062
| 리셋 타이머 | Anthropic Usage API `five_hour.resets_at` |
6163
| μ£Όκ°„ 리셋 μ‹œκ°„ | Anthropic Usage API `seven_day.resets_at` |

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Add the following to `~/.claude/settings.json`:
4848
- **Context**: Token usage with percentage (color-coded)
4949
- **Git Diff**: File count, insertions, deletions
5050
- **PR URL**: Clickable OSC 8 hyperlink
51+
- **Worktree Support**: Shows real project name when running in a `cc --worktree` session
5152
- **TrueColor**: Dynamic colors based on thresholds
5253
- **Limit Reset Time**: Reset time display (HH:MM)
5354
- **Block Usage**: 5-hour utilization percentage (from server API)
@@ -59,6 +60,7 @@ Add the following to `~/.claude/settings.json`:
5960
| Emoji | Description |
6061
| ----- | ------------------------ |
6162
| πŸ“ | Project folder name |
63+
| 🌲 | Worktree name (shown in worktree sessions) |
6264
| 🌿 | Current Git branch |
6365
| ⏱️ | Session elapsed time |
6466
| πŸ’° | Session cost in USD |

0 commit comments

Comments
Β (0)