/
starship.toml
61 lines (49 loc) · 1.41 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
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[ $directory ](bg:#89dceb fg:#2E3440)[](fg:#89dceb bg:#f5c2e7)\
[ $git_branch$git_status ](bg:#f5c2e7 fg:#2E3440)[](fg:#f5c2e7 bg:#fab387)\
[ $c$golang$nodejs$rust ](bg:#fab387 fg:#2E3440)[](fg:#fab387)
"""
right_format = """
[ $time ](fg:#6E6466)
"""
# Disable the blank line at the start of the prompt
# add_newline = false
[directory]
format = "$path"
truncation_length = 3
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = " "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
# Keep in mind that the order matters. For example:
# "Important Documents" = " "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important " = " "
[c]
symbol = " "
format = '$symbol ($version)'
[git_branch]
symbol = ""
format = '$symbol $branch'
[git_status]
format = '$all_status$ahead_behind'
[golang]
symbol = " "
format = '$symbol ($version)'
[nodejs]
symbol = ""
format = '$symbol ($version)'
[rust]
symbol = ""
format = '$symbol ($version)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
format = '$time'