@nutthead/cc-statusline 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +35 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,14 +23,41 @@ Add to `~/.claude/settings.json`:
23
23
 
24
24
  ### Custom Theme
25
25
 
26
- ```json
27
- {
28
- "statusLine": {
29
- "type": "command",
30
- "command": "~/.claude/statusline --theme ~/.config/cc-statusline/theme.js"
31
- }
32
- }
33
- ```
26
+ 1. Create a directory for the custom theme:
27
+
28
+ ```bash
29
+ mkdir ~/.config/cc-statusline
30
+ ```
31
+
32
+ 2. Write a custom theme (e.g. in `~/.config/cc-statusline/theme.js`)
33
+
34
+ ```js
35
+ export default function theme(input) {
36
+ if (input) {
37
+ // parse input
38
+ const json = JSON.parse(input);
39
+
40
+ // construct status line
41
+ const statusLine = "...";
42
+
43
+ // return status line
44
+ return statusLine;
45
+ } else {
46
+ return "";
47
+ }
48
+ }
49
+ ```
50
+
51
+ 3. Configure Claude Code
52
+
53
+ ```json
54
+ {
55
+ "statusLine": {
56
+ "type": "command",
57
+ "command": "~/.claude/statusline --theme ~/.config/cc-statusline/theme.js"
58
+ }
59
+ }
60
+ ```
34
61
 
35
62
  ## Logs
36
63
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nutthead/cc-statusline",
3
3
  "description": "Status Line for Claude Code",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "cc-statusline": "bin/cc-statusline.js"