Skip to main content

max / alloy_tui

3.9 KB · 129 lines History Blame Raw
1 # Alloy starship configuration
2 #
3 # Cross-shell prompt per docs/STACK.md#shell. Two-line prompt: line
4 # one for context (cwd + git + language versions), line two for the
5 # entry glyph. Color reserved for state (git dirty, non-zero exit,
6 # insert/normal mode) per DESIGN-LANGUAGE.md.
7 #
8 # Palette drawn from docs/TOKENS.md hex values, mapped to starship's
9 # color slots by function, not by name.
10
11 format = """
12 $directory\
13 $git_branch\
14 $git_status\
15 $python\
16 $rust\
17 $nodejs\
18 $cmd_duration\
19 $line_break\
20 $character"""
21
22 right_format = """$time"""
23
24 add_newline = true
25
26 # -------------------------------------------------------------------
27 # Entry glyph — the prompt character itself
28 # -------------------------------------------------------------------
29 [character]
30 success_symbol = "[▸](#222d38)" # text-secondary
31 error_symbol = "[▸](#6a2828)" # accent-error on non-zero exit
32 vimcmd_symbol = "[◂](#3a5830)" # accent-ok (normal mode)
33
34 # -------------------------------------------------------------------
35 # Directory — truncated, primary text
36 # -------------------------------------------------------------------
37 [directory]
38 style = "bold #1a1816" # text-primary
39 format = "[$path]($style)[$read_only]($read_only_style) "
40 truncation_length = 4
41 truncation_symbol = "…/"
42 truncate_to_repo = true
43 read_only = " "
44 read_only_style = "#6a2828"
45
46 # -------------------------------------------------------------------
47 # Git — branch (secondary), status (accent-warn if dirty)
48 # -------------------------------------------------------------------
49 [git_branch]
50 symbol = " "
51 style = "#222d38" # text-secondary
52 format = "[$symbol$branch]($style) "
53
54 [git_status]
55 style = "#b07840" # accent-warn
56 format = "[$all_status$ahead_behind]($style) "
57 conflicted = "="
58 ahead = "↑${count}"
59 behind = "↓${count}"
60 diverged = "↕${ahead_count}↓${behind_count}"
61 untracked = "?"
62 stashed = "$"
63 modified = "!"
64 staged = "+"
65 renamed = "»"
66 deleted = "✘"
67
68 # -------------------------------------------------------------------
69 # Language versions — dim, only shown when relevant to cwd
70 # -------------------------------------------------------------------
71 [python]
72 symbol = " "
73 style = "#514b45" # text-muted
74 format = "[$symbol$version]($style) "
75 detect_extensions = ["py"]
76 detect_files = ["pyproject.toml", "requirements.txt", "setup.py"]
77
78 [rust]
79 symbol = " "
80 style = "#514b45"
81 format = "[$symbol$version]($style) "
82
83 [nodejs]
84 symbol = " "
85 style = "#514b45"
86 format = "[$symbol$version]($style) "
87
88 # -------------------------------------------------------------------
89 # Command duration — only for commands >2s
90 # -------------------------------------------------------------------
91 [cmd_duration]
92 min_time = 2000
93 style = "#222d38"
94 format = "[$duration]($style) "
95 show_milliseconds = false
96
97 # -------------------------------------------------------------------
98 # Right-aligned clock — display font role (readout, not chrome).
99 # Kept in Iosevka since starship can't switch fonts per segment;
100 # this is a small honest deviation from the "readouts in Departure"
101 # rule that docs/TOKENS.md sanctions for terminal contexts.
102 # -------------------------------------------------------------------
103 [time]
104 disabled = false
105 format = "[$time]($style)"
106 time_format = "%H:%M"
107 style = "#514b45"
108
109 # -------------------------------------------------------------------
110 # Disabled modules — noise for Alloy's audience
111 # -------------------------------------------------------------------
112 [package]
113 disabled = true
114
115 [hostname]
116 disabled = true
117
118 [username]
119 disabled = true
120
121 [aws]
122 disabled = true
123
124 [gcloud]
125 disabled = true
126
127 [docker_context]
128 disabled = true
129