-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstarship.toml
329 lines (274 loc) · 6.67 KB
/
starship.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# https://starship.rs/config/#prompt
# Default Prompt for reference
format = '''
$virtualenv$directory$git_branch$git_commit$git_status$c$cmd_duration$python$shlvl
$jobs$hostname$username $shell $character
'''
right_format = "$status${custom.minitalk}${custom.valgrind}$localip$time $battery$os"
continuation_prompt = '▶▶ '
# Don't print a new line at the start of the prompt
add_newline = false
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 77
[localip]
ssh_only = true
format = '[$localipv4]($style) '
style = "bold dimmed white"
disabled = false
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
[character]
format = "$symbol "
error_symbol = "[❭](bold red)"
success_symbol = "[❭](bold yellow)"
vimcmd_symbol = "[❭ ](bold green)"
vimcmd_replace_one_symbol = "[❭ ](bold purple)"
vimcmd_replace_symbol = "[❭ ](bold purple)"
vimcmd_visual_symbol = "[❭ ](bold yellow)"
[directory]
read_only = " "
truncate_to_repo = true
style = "bold cyan underline"
truncation_length = 4
truncation_symbol = "../"
format = "[$path]($style)[$lock_symbol]($lock_style) "
[git_branch]
symbol = " "
style = "bold purple"
format = "[on](bold dimmed white)[ ⟪ ](bold green)[$symbol$branch(:$remote_branch)]($style)[ ⟫ ](bold green)"
[git_commit]
commit_hash_length = 7
tag_symbol = '🔖 '
format = '[\($hash$tag\)]($style) '
style = "bold yellow"
only_detached = true
disabled = false
[git_state]
# format = '([\[$conflicted$renamed$modified$staged$behind$deleted\]]($style) )'
format = '\([$state( $progress_current/$progress_total)]($style)\) '
cherry_pick = '[🍒 PICKING](bold red)'
merge = '[ MERGING](bold red)'
rebase = '[ REBASING](bold red)'
revert = '[⎌ REVERTING](bold red)'
bisect = '[ BISECTING](bold red)'
disabled = false
[git_status]
format = '([\[$ahead_behind$all_status\]]($style) )'
conflicted = '🏳'
ahead = "🏃${count}"
behind = "🐢 ×${count}"
diverged = "🔱 🏃${ahead_count} 🐢 ×${behind_count}"
up_to_date = '✓'
untracked = '🤷'
stashed = '📦'
modified = '📝'
staged = '[++\($count\)](bold yellow)'
renamed = '👅'
deleted = ''
[shell]
format = '[$indicator]($style)'
fish_indicator = ''
bash_indicator = ''
zsh_indicator = ''
powershell_indicator = '_'
cmd_indicator = ''
unknown_indicator = '?sh'
style = 'bold yellow'
disabled = false
[shlvl]
disabled = false
format = '[$symbol$shlvl]($style)'
style = 'bold green'
repeat = true
symbol = '❯'
repeat_offset = 1
threshold = 0
[cmd_duration]
min_time = 100 # miliseconds
format = "[](bold cyan) [took](bold dimmed white) [$duration]($style) "
style = "bold yellow"
disabled = false
[status]
format = ' [$symbol$int $signal_name]($style) '
pipestatus_format = '[\[$pipestatus\] => [$symbol$int$common_meaning$signal_name$maybe_int]($style)](bold cyan) '
pipestatus_separator = '[|](bold cyan)'
style = 'fg:yellow'
symbol = '[](bold red) '
success_symbol = ' '
not_found_symbol = '[](bold red) '
sigint_symbol = '[](bold red) '
signal_symbol = ' '
recognize_signal_code = true
map_symbol = true
pipestatus = true
disabled = false
[hostname]
ssh_symbol = " "
ssh_only = false
format = '[\[](bold green)[$hostname]($style)[\]](bold green)'
trim_at = "-"
style = "bold yellow"
disabled = false
[username]
format = '[\[](bold green)[$user]($style)[\]](bold green)'
style_user = "bold blue"
style_root = 'black bold'
disabled = false
show_always = true
[os]
format = "[$symbol]($style)"
style = "bold dimmed white"
disabled = false
[sudo]
symbol = "👩🏻💻 "
style = "bold dimmed white"
disabled = false
[jobs]
format = '[$symbol$number]($style)'
style = "bold purple"
symbol = '✦'
number_threshold = 2
symbol_threshold = 0
[time]
time_format = "%T"
format = "[ $time]($style)"
style = "bold green"
disabled = false
[aws]
symbol = " "
[buf]
symbol = " "
[c]
symbol = " "
format = '[via](bold dimmed white) [$symbol$name $version]($style) '
commands = [[ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ]]
[conda]
symbol = " "
[dart]
symbol = " "
[docker_context]
symbol = " "
[custom.dockerfile]
detect_files = ["Dockerfile"] # can specify filters but wildcards are not supported
format = "[ 🐋](blue bold)"
symbol = "🐋"
[elixir]
symbol = " "
[elm]
symbol = " "
[fossil_branch]
symbol = " "
[golang]
symbol = " "
[guix_shell]
symbol = " "
[haskell]
symbol = " "
[haxe]
symbol = " "
[hg_branch]
symbol = " "
[java]
symbol = " "
[julia]
symbol = " "
[lua]
symbol = " "
[memory_usage]
symbol = " "
[meson]
symbol = " "
[nim]
symbol = " "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
format = '\[[$symbol($version)]($style)\]'
[os.symbols]
Alpaquita = " "
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = " "
Gentoo = " "
HardenedBSD = " "
Illumos = " "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
OpenBSD = " "
openSUSE = " "
OracleLinux = " "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
Redox = " "
Solus = " "
SUSE = " "
Ubuntu = "[](bold red)"
Unknown = " "
Windows = " "
[package]
symbol = " "
[pijul_channel]
symbol = " "
[python]
symbol = " "
format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
# format = '[($virtualenv )]($style)'
version_format = 'v${raw}'
detect_extensions = ['py']
detect_files = ['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']
detect_folders = []
pyenv_version_name = true
pyenv_prefix = ""
style = "bold yellow"
[rlang]
symbol = " "
[ruby]
symbol = " "
[rust]
symbol = " "
[scala]
symbol = " "
[custom.valgrind]
when = "ps aux | grep valgrind | grep -v grep"
command = "~/.dotfiles/scripts/starship/valgrind-pid.sh"
format = "[⟪ ](bold red)[$symbol]($style) [$output](dimmed underline)[ ⟫](bold red) "
style = "dimmed white"
symbol = ""
# kubernetes
[kubernetes]
symbol = "⛵ "
style = "bold dimmed green"
disabled = false
# [custom.minitalk]
# when = "pidof server"
# command = "~/.dotfiles/scripts/starship/minitalk-pid.sh"
# format = "[⟪ ](bold red)[$symbol]($style) [$output](dimmed underline)[ ⟫](bold red) "
# style = "dimmed white"
# symbol = ""