@narumitw/pi-starship 0.64.3 → 0.65.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 (36) hide show
  1. package/NOTICES.md +128 -4
  2. package/README.md +7 -3
  3. package/dist/chunks/{chunk-D563JANR.ts → chunk-D2YWQMYT.ts} +3 -3
  4. package/dist/chunks/{chunk-A65IOGL6.ts → chunk-I22B7QPQ.ts} +6 -4
  5. package/dist/chunks/chunk-I22B7QPQ.ts.map +7 -0
  6. package/dist/chunks/{chunk-UIKPE4UC.ts → chunk-YK4S4RRM.ts} +812 -106
  7. package/dist/chunks/chunk-YK4S4RRM.ts.map +7 -0
  8. package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts → command-configuration-menu-BJYQXV2U.ts} +3 -3
  9. package/dist/chunks/{command-settings-chat-V6OA2FB2.ts → command-settings-chat-42OTC7NJ.ts} +4 -4
  10. package/dist/chunks/{commands-OF4U3XWQ.ts → commands-ZL36J5TX.ts} +6 -6
  11. package/dist/index.ts +8 -4
  12. package/dist/index.ts.map +3 -3
  13. package/package.json +2 -2
  14. package/skills/configure-pi-starship/references/configuration.md +29 -8
  15. package/skills/configure-pi-starship/references/modules.md +1 -0
  16. package/skills/configure-pi-starship/references/runtime-and-security.md +2 -1
  17. package/src/modules/activity.ts +5 -3
  18. package/src/pi-starship.ts +8 -2
  19. package/src/presets/catalog.ts +67 -4
  20. package/src/presets/catppuccin-tmux.ts +84 -0
  21. package/src/presets/dracula-tmux.ts +83 -0
  22. package/src/presets/gruvbox-rainbow.ts +61 -38
  23. package/src/presets/jetpack.ts +1 -1
  24. package/src/presets/lualine-bubbles.ts +72 -0
  25. package/src/presets/lualine-evil.ts +93 -0
  26. package/src/presets/lualine-slanted-gaps.ts +73 -0
  27. package/src/presets/oh-my-posh-atomic.ts +88 -0
  28. package/src/presets/pastel-powerline.ts +52 -31
  29. package/src/presets/powerlevel10k-lean.ts +86 -0
  30. package/src/presets/tokyo-night.ts +51 -31
  31. package/dist/chunks/chunk-A65IOGL6.ts.map +0 -7
  32. package/dist/chunks/chunk-UIKPE4UC.ts.map +0 -7
  33. /package/dist/chunks/{chunk-D563JANR.ts.map → chunk-D2YWQMYT.ts.map} +0 -0
  34. /package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts.map → command-configuration-menu-BJYQXV2U.ts.map} +0 -0
  35. /package/dist/chunks/{command-settings-chat-V6OA2FB2.ts.map → command-settings-chat-42OTC7NJ.ts.map} +0 -0
  36. /package/dist/chunks/{commands-OF4U3XWQ.ts.map → commands-ZL36J5TX.ts.map} +0 -0
@@ -0,0 +1,72 @@
1
+ export const LUALINE_BUBBLES_PRESET = `# Pi-native adaptation of Lualine Bubbles.
2
+ # Source: https://github.com/nvim-lualine/lualine.nvim/blob/master/examples/bubbles.lua
3
+ # Original configuration: https://raw.githubusercontent.com/nvim-lualine/lualine.nvim/master/examples/bubbles.lua
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Map editor mode to Pi, filename to workspace, filetype to model, and cursor progress to context usage. Pi has no Neovim mode.
6
+
7
+ format = "$brand$directory$git_branch$git_status[](grey)\${fill}$model$thinking$context(\\n$extension_status)"
8
+ palette = "bubbles"
9
+
10
+ [palettes.bubbles]
11
+ violet = "#d183e8"
12
+ blue = "#80a0ff"
13
+ cyan = "#79dac8"
14
+ black = "#080808"
15
+ white = "#c6c6c6"
16
+ red = "#ff5189"
17
+ grey = "#303030"
18
+ muted = "#a0a0a0"
19
+
20
+ [brand]
21
+ format = "[](violet)[ $symbol ]($style)[](fg:violet bg:grey)"
22
+ style = "bold fg:black bg:violet"
23
+ symbol = "π"
24
+
25
+ [directory]
26
+ format = "[ $path ]($style)"
27
+ style = "fg:white bg:grey"
28
+ symbol = ""
29
+ truncation_length = 2
30
+ truncation_symbol = "…/"
31
+
32
+ [git_branch]
33
+ format = "[ $symbol $branch ]($style)"
34
+ style = "fg:white bg:grey"
35
+ symbol = ""
36
+ truncation_length = 18
37
+
38
+ [git_status]
39
+ format = "([ $all_status$ahead_behind ]($style))"
40
+ style = "fg:red bg:grey"
41
+
42
+ [model]
43
+ format = "([](fg:grey)[ $model ]($style)[](fg:grey) )"
44
+ style = "fg:white bg:grey"
45
+ symbol = "◆"
46
+ shorten_model = true
47
+ truncation_length = 22
48
+ truncation_direction = "middle"
49
+
50
+ [thinking]
51
+ format = "([](fg:blue)[ $level ]($style)[](fg:blue) )"
52
+ style = "fg:black bg:blue"
53
+
54
+ [context]
55
+ format = "([](fg:cyan)[ ctx $percentage ]($style)[](fg:cyan) )"
56
+
57
+ [[context.display]]
58
+ threshold = 0
59
+ style = "bold fg:black bg:cyan"
60
+ hidden = false
61
+
62
+ [fill]
63
+ style = "fg:muted"
64
+ symbol = " "
65
+
66
+ [extension_status]
67
+ format = "([$statuses]($style))"
68
+ style = "fg:muted"
69
+ separator = " · "
70
+ max_statuses = 2
71
+ icons = { fallback = "" }
72
+ `;
@@ -0,0 +1,93 @@
1
+ export const LUALINE_EVIL_PRESET = `# Pi-native adaptation of Lualine Eviline.
2
+ # Source: https://github.com/nvim-lualine/lualine.nvim/blob/master/examples/evil_lualine.lua
3
+ # Original configuration: https://raw.githubusercontent.com/nvim-lualine/lualine.nvim/master/examples/evil_lualine.lua
4
+ # Font: Standard Unicode. See NOTICES.md for attribution and license terms.
5
+ # Keep the flat layout and edge bars. Use thinking-level styles instead of Vim mode colors, and Pi activity instead of LSP state.
6
+
7
+ format = "[[▊ ](fg:blue bg:bg)$brand$model$thinking$activity\${fill}$directory$git_branch$git_status$context[ ▊](fg:blue bg:bg)](fg:fg bg:bg)(\\n$extension_status)"
8
+ palette = "evil"
9
+
10
+ [palettes.evil]
11
+ bg = "#202328"
12
+ fg = "#bbc2cf"
13
+ yellow = "#ECBE7B"
14
+ green = "#98be65"
15
+ orange = "#FF8800"
16
+ violet = "#a9a1e1"
17
+ magenta = "#c678dd"
18
+ blue = "#51afef"
19
+ red = "#ec5f67"
20
+ muted = "#7f8795"
21
+
22
+ [brand]
23
+ format = "[$symbol ]($style)"
24
+ style = "bold fg:red bg:bg"
25
+ symbol = "π"
26
+
27
+ [model]
28
+ format = "[$model ]($style)"
29
+ style = "bold fg:magenta bg:bg"
30
+ symbol = "◆"
31
+ shorten_model = true
32
+ truncation_length = 22
33
+ truncation_direction = "middle"
34
+
35
+ [thinking]
36
+ format = "[$level ]($style)"
37
+ style = "fg:green bg:bg"
38
+ style_high = "fg:yellow bg:bg"
39
+ style_xhigh = "fg:orange bg:bg"
40
+ style_max = "fg:red bg:bg"
41
+
42
+ [activity]
43
+ format = "[$text ]($style)"
44
+ style = "fg:yellow bg:bg"
45
+ symbol = "●"
46
+
47
+ [directory]
48
+ format = "[$path ]($style)"
49
+ style = "fg:fg bg:bg"
50
+ symbol = "dir"
51
+ truncation_length = 2
52
+ truncation_symbol = "…/"
53
+
54
+ [git_branch]
55
+ format = "[$symbol:$branch ]($style)"
56
+ style = "fg:violet bg:bg"
57
+ symbol = "git"
58
+ truncation_length = 18
59
+
60
+ [git_status]
61
+ format = "([ $all_status$ahead_behind ]($style))"
62
+ style = "fg:orange bg:bg"
63
+
64
+ [context]
65
+ format = "[ctx $percentage]($style)"
66
+
67
+ [[context.display]]
68
+ threshold = 0
69
+ style = "fg:green bg:bg"
70
+ hidden = false
71
+
72
+ [[context.display]]
73
+ threshold = 60
74
+ style = "fg:yellow bg:bg"
75
+ hidden = false
76
+
77
+ [[context.display]]
78
+ threshold = 80
79
+ style = "bold fg:red bg:bg"
80
+ hidden = false
81
+
82
+ [fill]
83
+ format = "[$symbol]($style)"
84
+ style = "bg:bg"
85
+ symbol = " "
86
+
87
+ [extension_status]
88
+ format = "([$statuses]($style))"
89
+ style = "fg:muted"
90
+ separator = " · "
91
+ max_statuses = 2
92
+ icons = { fallback = "" }
93
+ `;
@@ -0,0 +1,73 @@
1
+ export const LUALINE_SLANTED_GAPS_PRESET = `# Pi-native adaptation of Lualine Slanted Gaps.
2
+ # Source: https://github.com/nvim-lualine/lualine.nvim/blob/master/examples/slanted-gaps.lua
3
+ # Original configuration: https://raw.githubusercontent.com/nvim-lualine/lualine.nvim/master/examples/slanted-gaps.lua
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Keep the light surface and opposing slopes. Replace editor mode, filename, and cursor location with Pi, workspace, model, and context.
6
+
7
+ format = "[$brand$directory$git_branch$git_status\${fill}$model$thinking$context](fg:black bg:white)(\\n$extension_status)"
8
+ palette = "slanted_gaps"
9
+
10
+ [palettes.slanted_gaps]
11
+ red = "#ca1243"
12
+ grey = "#a0a1a7"
13
+ black = "#383a42"
14
+ white = "#f3f3f3"
15
+ light_green = "#83a598"
16
+ orange = "#fe8019"
17
+ green = "#8ec07c"
18
+ muted = "#626574"
19
+
20
+ [brand]
21
+ format = "[ $symbol ]($style)[](fg:black bg:white) "
22
+ style = "bold fg:white bg:black"
23
+ symbol = "π"
24
+
25
+ [directory]
26
+ format = "([ $path ]($style)[](fg:grey bg:white) )"
27
+ style = "fg:black bg:grey"
28
+ symbol = ""
29
+ truncation_length = 2
30
+ truncation_symbol = "…/"
31
+
32
+ [git_branch]
33
+ format = "([ $symbol $branch ]($style)[](fg:light_green bg:white) )"
34
+ style = "fg:black bg:light_green"
35
+ symbol = ""
36
+ truncation_length = 18
37
+
38
+ [git_status]
39
+ format = "([ $all_status$ahead_behind ]($style)[](fg:red bg:white) )"
40
+ style = "fg:white bg:red"
41
+
42
+ [model]
43
+ format = "([](fg:black bg:white)[ $model ]($style) )"
44
+ style = "fg:white bg:black"
45
+ symbol = "◆"
46
+ shorten_model = true
47
+ truncation_length = 22
48
+ truncation_direction = "middle"
49
+
50
+ [thinking]
51
+ format = "([](fg:orange bg:white)[ $level ]($style) )"
52
+ style = "fg:black bg:orange"
53
+
54
+ [context]
55
+ format = "([](fg:black bg:white)[ ctx $percentage ]($style))"
56
+
57
+ [[context.display]]
58
+ threshold = 0
59
+ style = "bold fg:white bg:black"
60
+ hidden = false
61
+
62
+ [fill]
63
+ format = "[$symbol]($style)"
64
+ style = "bg:white"
65
+ symbol = " "
66
+
67
+ [extension_status]
68
+ format = "([$statuses]($style))"
69
+ style = "fg:muted"
70
+ separator = " · "
71
+ max_statuses = 2
72
+ icons = { fallback = "" }
73
+ `;
@@ -0,0 +1,88 @@
1
+ export const OH_MY_POSH_ATOMIC_PRESET = `# Pi-native adaptation of Oh My Posh Atomic.
2
+ # Source: https://ohmyposh.dev/docs/themes#atomic
3
+ # Original configuration: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/atomic.omp.json
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Replace shell and execution time with Pi and real activity; use model, thinking, and context instead of runtime/cloud/battery probes. Git background is fixed, not template-driven.
6
+
7
+ format = "[╭─](blue)$brand$directory([](fg:prev_bg bg:gold)$git_branch$git_status)$activity[](fg:prev_bg)\${fill}$context$time\\n[╰─❯ ](teal)$model$thinking\${fill}$tokens(\\n$extension_status)"
8
+ palette = "atomic"
9
+
10
+ [palettes.atomic]
11
+ blue = "#0077c2"
12
+ white = "#ffffff"
13
+ orange = "#FF9248"
14
+ ink = "#2d3436"
15
+ gold = "#FFFB38"
16
+ git_ink = "#011627"
17
+ violet = "#83769c"
18
+ cyan = "#40c4ff"
19
+ teal = "#21c7c7"
20
+ muted = "#b2bec3"
21
+
22
+ [brand]
23
+ format = "[ $symbol ]($style)"
24
+ style = "bold fg:white bg:blue"
25
+ symbol = "π"
26
+
27
+ [directory]
28
+ format = "([](fg:prev_bg bg:orange)[ $symbol $path ]($style))"
29
+ style = "fg:ink bg:orange"
30
+ symbol = ""
31
+ truncation_length = 2
32
+ truncation_symbol = "…/"
33
+
34
+ [git_branch]
35
+ format = "([ $symbol $branch ]($style))"
36
+ style = "fg:git_ink bg:gold"
37
+ symbol = ""
38
+ truncation_length = 18
39
+
40
+ [git_status]
41
+ format = "([ $all_status$ahead_behind ]($style))"
42
+ style = "fg:git_ink bg:gold"
43
+
44
+ [activity]
45
+ format = "([](fg:prev_bg bg:violet)[ $text ]($style))"
46
+ style = "fg:white bg:violet"
47
+ symbol = "●"
48
+
49
+ [context]
50
+ format = "([](fg:cyan)[ ctx $percentage ]($style)[](fg:cyan) )"
51
+
52
+ [[context.display]]
53
+ threshold = 0
54
+ style = "bold fg:ink bg:cyan"
55
+ hidden = false
56
+
57
+ [time]
58
+ format = "([](fg:blue)[ $time ]($style)[](fg:blue) )"
59
+ style = "fg:white bg:blue"
60
+ time_format = "%H:%M"
61
+
62
+ [model]
63
+ format = "([](fg:blue)[ $model ]($style)[](fg:blue) )"
64
+ style = "fg:white bg:blue"
65
+ symbol = "◆"
66
+ shorten_model = true
67
+ truncation_length = 22
68
+ truncation_direction = "middle"
69
+
70
+ [thinking]
71
+ format = "([](fg:violet)[ $level ]($style)[](fg:violet) )"
72
+ style = "fg:white bg:violet"
73
+
74
+ [tokens]
75
+ format = "[↑$input ↓$output]($style)"
76
+ style = "fg:muted"
77
+
78
+ [fill]
79
+ style = "fg:muted"
80
+ symbol = " "
81
+
82
+ [extension_status]
83
+ format = "([$statuses]($style))"
84
+ style = "fg:muted"
85
+ separator = " · "
86
+ max_statuses = 2
87
+ icons = { fallback = "" }
88
+ `;
@@ -1,53 +1,74 @@
1
- export const PASTEL_POWERLINE_PRESET = `# Pi-native adaptation of Starship's Pastel Powerline preset.
2
- format = "[](#9A348E)$brand$model[](bg:#DA627D fg:#9A348E)$directory[](fg:#DA627D bg:#FCA17D)$git_branch$git_status[](fg:#FCA17D bg:#86BBD8)$thinking$activity[](fg:#86BBD8 bg:#06969A)$context[](fg:#06969A bg:#33658A)$time[](fg:#33658A)"
1
+ export const PASTEL_POWERLINE_PRESET = `# Pi-native adaptation of Pastel Powerline.
2
+ # Source: https://starship.rs/presets/pastel-powerline
3
+ # Original configuration: https://starship.rs/presets/toml/pastel-powerline.toml
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Replace username, languages, and Docker with Pi, model, thinking, and context. Retain the six-color sequence.
6
+
7
+ format = "[](magenta)$brand$directory([](fg:prev_bg bg:peach)$git_branch$git_status)$model$thinking([](fg:prev_bg bg:navy)$context$time)[](fg:prev_bg)(\\n$extension_status)"
8
+ palette = "pastel_powerline"
9
+
10
+ [palettes.pastel_powerline]
11
+ ink = "#202331"
12
+ white = "#ffffff"
13
+ magenta = "#9A348E"
14
+ coral = "#DA627D"
15
+ peach = "#FCA17D"
16
+ blue = "#86BBD8"
17
+ teal = "#06969A"
18
+ navy = "#33658A"
19
+ muted = "#a0a9cb"
3
20
 
4
21
  [brand]
5
22
  format = "[ $symbol ]($style)"
6
- symbol = ""
7
- style = "fg:#ffffff bg:#9A348E bold"
8
-
9
- [model]
10
- format = "[$model ]($style)"
11
- symbol = ""
12
- style = "fg:#ffffff bg:#9A348E bold"
23
+ style = "bold fg:white bg:magenta"
24
+ symbol = "π"
13
25
 
14
26
  [directory]
15
- format = "[ $path ]($style)"
16
- symbol = ""
17
- style = "fg:#ffffff bg:#DA627D bold"
18
- truncation_length = 3
27
+ format = "([](fg:prev_bg bg:coral)[ $symbol $path ]($style))"
28
+ style = "bold fg:ink bg:coral"
29
+ symbol = ""
30
+ truncation_length = 2
19
31
  truncation_symbol = "…/"
20
32
 
21
33
  [git_branch]
22
- format = "[ $symbol $branch ]($style)"
34
+ format = "([ $symbol $branch ]($style))"
35
+ style = "fg:ink bg:peach"
23
36
  symbol = ""
24
- style = "fg:#1f1f1f bg:#FCA17D bold"
37
+ truncation_length = 18
25
38
 
26
39
  [git_status]
27
- format = "[$all_status$ahead_behind ]($style)"
28
- style = "fg:#1f1f1f bg:#FCA17D bold"
40
+ format = "([ $all_status$ahead_behind ]($style))"
41
+ style = "fg:ink bg:peach"
29
42
 
30
- [thinking]
31
- format = "[ $symbol $level ]($style)"
32
- symbol = "󰔟"
33
- style = "fg:#1f1f1f bg:#86BBD8 bold"
43
+ [model]
44
+ format = "([](fg:prev_bg bg:blue)[ $symbol $model ]($style))"
45
+ style = "bold fg:ink bg:blue"
46
+ symbol = "◆"
47
+ shorten_model = true
48
+ truncation_length = 22
49
+ truncation_direction = "middle"
34
50
 
35
- [activity]
36
- format = "[ $text ]($style)"
37
- symbol = "󰑮"
38
- style = "fg:#1f1f1f bg:#86BBD8 bold"
51
+ [thinking]
52
+ format = "([](fg:prev_bg bg:teal)[ $level ]($style))"
53
+ style = "fg:white bg:teal"
39
54
 
40
55
  [context]
41
- format = "[ $symbol $percentage ](fg:#ffffff bg:#06969A bold)"
42
- symbol = "󰍛"
56
+ format = "([ ctx $percentage ]($style))"
43
57
 
44
58
  [[context.display]]
45
59
  threshold = 0
46
- style = "#06969A"
60
+ style = "fg:white bg:navy"
47
61
  hidden = false
48
62
 
49
63
  [time]
50
- format = "[ ♥ $time ]($style)"
51
- symbol = ""
52
- style = "fg:#ffffff bg:#33658A bold"
64
+ format = "[ $time ]($style)"
65
+ style = "fg:white bg:navy"
66
+ time_format = "%H:%M"
67
+
68
+ [extension_status]
69
+ format = "([$statuses]($style))"
70
+ style = "fg:muted"
71
+ separator = " · "
72
+ max_statuses = 2
73
+ icons = { fallback = "" }
53
74
  `;
@@ -0,0 +1,86 @@
1
+ export const POWERLEVEL10K_LEAN_PRESET = `# Pi-native adaptation of Powerlevel10k Lean.
2
+ # Source: https://github.com/romkatv/powerlevel10k#readme
3
+ # Original configuration: https://github.com/romkatv/powerlevel10k/blob/master/config/p10k-lean.zsh
4
+ # Font: Standard Unicode. See NOTICES.md for attribution and license terms.
5
+ # Keep Lean's path/Git row, open spacing, and lower prompt mark. The lower row is a footer, not a shell input line; Pi wraps instead of hiding overlaps.
6
+
7
+ format = "$directory$git_branch$git_status\${fill}$context$time\\n$brand$model$thinking\${fill}$activity$tokens(\\n$extension_status)"
8
+ palette = "lean"
9
+
10
+ [palettes.lean]
11
+ path = "#00afff"
12
+ green = "#5fd700"
13
+ violet = "#8787af"
14
+ red = "#ff0000"
15
+ yellow = "#ffff00"
16
+ text = "#d7d7d7"
17
+ muted = "#808080"
18
+ cyan = "#00d7d7"
19
+
20
+ [directory]
21
+ format = "[$path ]($style)"
22
+ style = "bold fg:path"
23
+ symbol = "dir"
24
+ truncation_length = 2
25
+ truncation_symbol = "…/"
26
+
27
+ [git_branch]
28
+ format = "[on $branch ]($style)"
29
+ style = "fg:green"
30
+ symbol = ""
31
+ truncation_length = 18
32
+
33
+ [git_status]
34
+ format = "([ $all_status$ahead_behind ]($style))"
35
+ style = "fg:red"
36
+
37
+ [brand]
38
+ format = "[$symbol ]($style)"
39
+ style = "bold fg:green"
40
+ symbol = "❯"
41
+
42
+ [model]
43
+ format = "[$model ]($style)"
44
+ style = "fg:text"
45
+ symbol = "◆"
46
+ shorten_model = true
47
+ truncation_length = 22
48
+ truncation_direction = "middle"
49
+
50
+ [thinking]
51
+ format = "[$level ]($style)"
52
+ style = "fg:violet"
53
+
54
+ [activity]
55
+ format = "[$text ]($style)"
56
+ style = "fg:yellow"
57
+ symbol = "●"
58
+
59
+ [tokens]
60
+ format = "[↑$input ↓$output]($style)"
61
+ style = "fg:cyan"
62
+
63
+ [context]
64
+ format = "[ctx $percentage ]($style)"
65
+
66
+ [[context.display]]
67
+ threshold = 0
68
+ style = "fg:muted"
69
+ hidden = false
70
+
71
+ [time]
72
+ format = "[$time]($style)"
73
+ style = "fg:muted"
74
+ time_format = "%H:%M"
75
+
76
+ [fill]
77
+ style = "fg:muted"
78
+ symbol = " "
79
+
80
+ [extension_status]
81
+ format = "([$statuses]($style))"
82
+ style = "fg:muted"
83
+ separator = " · "
84
+ max_statuses = 2
85
+ icons = { fallback = "" }
86
+ `;
@@ -1,53 +1,73 @@
1
- export const TOKYO_NIGHT_PRESET = `# Pi-native adaptation of Starship's Tokyo Night preset.
2
- format = "[░▒▓](#a3aed2)$brand$model[](bg:#769ff0 fg:#a3aed2)$directory[](fg:#769ff0 bg:#394260)$git_branch$git_status[](fg:#394260 bg:#212736)$thinking$activity[](fg:#212736 bg:#1d2230)$context$time[](fg:#1d2230)"
1
+ export const TOKYO_NIGHT_PRESET = `# Pi-native adaptation of Tokyo Night.
2
+ # Source: https://starship.rs/presets/tokyo-night
3
+ # Original configuration: https://starship.rs/presets/toml/tokyo-night.toml
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Replace OS and language probes with Pi and the selected model. Use the final dark block for context and the clock.
6
+
7
+ format = "[░▒▓](lead)$brand$directory([](fg:prev_bg bg:git)$git_branch$git_status)([](fg:prev_bg bg:model)$model$thinking)([](fg:prev_bg bg:meter)$context$time)[](fg:prev_bg)(\\n$extension_status)"
8
+ palette = "tokyo_night"
9
+
10
+ [palettes.tokyo_night]
11
+ lead = "#a3aed2"
12
+ ink = "#090c0c"
13
+ blue = "#769ff0"
14
+ fg = "#e3e5e5"
15
+ git = "#394260"
16
+ model = "#212736"
17
+ meter = "#1d2230"
18
+ muted = "#a0a9cb"
3
19
 
4
20
  [brand]
5
21
  format = "[ $symbol ]($style)"
6
- symbol = ""
7
- style = "fg:#090c0c bg:#a3aed2 bold"
8
-
9
- [model]
10
- format = "[$model ]($style)"
11
- symbol = ""
12
- style = "fg:#090c0c bg:#a3aed2 bold"
22
+ style = "bold fg:ink bg:lead"
23
+ symbol = "π"
13
24
 
14
25
  [directory]
15
- format = "[ $path ]($style)"
16
- symbol = ""
17
- style = "fg:#e3e5e5 bg:#769ff0 bold"
18
- truncation_length = 3
26
+ format = "([](fg:prev_bg bg:blue)[ $symbol $path ]($style))"
27
+ style = "bold fg:ink bg:blue"
28
+ symbol = ""
29
+ truncation_length = 2
19
30
  truncation_symbol = "…/"
20
31
 
21
32
  [git_branch]
22
- format = "[ $symbol $branch ]($style)"
33
+ format = "([ $symbol $branch ]($style))"
34
+ style = "fg:blue bg:git"
23
35
  symbol = ""
24
- style = "fg:#769ff0 bg:#394260 bold"
36
+ truncation_length = 18
25
37
 
26
38
  [git_status]
27
- format = "[$all_status$ahead_behind ]($style)"
28
- style = "fg:#769ff0 bg:#394260 bold"
39
+ format = "([ $all_status$ahead_behind ]($style))"
40
+ style = "fg:blue bg:git"
29
41
 
30
- [thinking]
31
- format = "[ $symbol $level ]($style)"
32
- symbol = "󰔟"
33
- style = "fg:#769ff0 bg:#212736 bold"
42
+ [model]
43
+ format = "([ $symbol $model ]($style))"
44
+ style = "fg:blue bg:model"
45
+ symbol = "◆"
46
+ shorten_model = true
47
+ truncation_length = 22
48
+ truncation_direction = "middle"
34
49
 
35
- [activity]
36
- format = "[ $text ]($style)"
37
- symbol = "󰑮"
38
- style = "fg:#769ff0 bg:#212736 bold"
50
+ [thinking]
51
+ format = "([ $level ]($style))"
52
+ style = "fg:muted bg:model"
39
53
 
40
54
  [context]
41
- format = "[ $symbol $percentage ](fg:#a0a9cb bg:#1d2230 bold)"
42
- symbol = "󰍛"
55
+ format = "([ ctx $percentage ]($style))"
43
56
 
44
57
  [[context.display]]
45
58
  threshold = 0
46
- style = "#1d2230"
59
+ style = "fg:muted bg:meter"
47
60
  hidden = false
48
61
 
49
62
  [time]
50
- format = "[ $time ]($style)"
51
- symbol = ""
52
- style = "fg:#a0a9cb bg:#1d2230 bold"
63
+ format = "[ $time ]($style)"
64
+ style = "fg:muted bg:meter"
65
+ time_format = "%H:%M"
66
+
67
+ [extension_status]
68
+ format = "([$statuses]($style))"
69
+ style = "fg:muted"
70
+ separator = " · "
71
+ max_statuses = 2
72
+ icons = { fallback = "" }
53
73
  `;