-
Notifications
You must be signed in to change notification settings - Fork 0
/
starship.toml
239 lines (206 loc) · 5.16 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
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
#
#ristretto:
# id: "ristretto"
# name: Monokai Pro (Filter Ristretto)
# colors:
# # primary colors
# red: "#fd6883"
# orange: "#f38d70"
# yellow: "#f9cc6c"
# green: "#adda78"
# blue: "#85dacc"
# purple: "#a8a9eb"
# # base colors
# base0: "#191515"
# base1: "#211c1c"
# base2: "#2c2525"
# base3: "#403838"
# base4: "#5b5353"
# base5: "#72696a"
# base6: "#8c8384"
# base7: "#c3b7b8"
# base8: "#fff1f3"
# # variants
# base8x0c: "#352e2e"
# geometry symbols: , , , (these all live in the E0B0+ range
add_newline = false
format = """\
${custom.env_file}\
${custom.poetry_env}\
[](fg:#c3b7b8)\
$time\
[](fg:#c3b7b8 bg:#fd6883)\
$hostname\
[](fg:#fd6883 )\
[ ](fg:#403838)\
$python\
[](fg:#403838 bg:#8c8384)\
$gcloud\
[ |](bg:#8c8384)\
$kubernetes\
[](fg:#8c8384 )\
[ ](fg:#f38d70 )\
$directory\
[](fg:#f38d70 bg:#f9cc6c)\
$git_branch\
$git_status\
[](fg:#f9cc6c bg:#86BBD8)\
$status\
[](fg:#86BBD8 bg:#86BBD8)\
$c\
$elixir\
$elm\
$golang\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
[ ](fg:#86BBD8)\
"""
#right_format = """\
#$status\
#${custom.env_file}\
#${custom.poetry_env}\
#[ ](fg:#403838)\
#$python\
#[ ](fg:#8c8384 bg:#403838)\
#$gcloud\
#[ |](bg:#8c8384)\
#$kubernetes\
#[ ](fg:#c3b7b8 bg:#8c8384)\
#$time\
#[](fg:#c3b7b8)\
#"""
[gcloud]
format = '[$symbol$active]($style)'
style = "fg:#fff1f3 bg:#8c8384"
symbol = " "
[gcloud.project_aliases]
redshred-staging = 'staging'
redshred-production = 'production'
redshred-lite-sandbox = 'lite-sandbox'
redshred-lite-nonprod = 'lite-nonprod'
redshred-lite-prod = 'lite-prod'
[python]
version_format = "${raw}"
style = "fg:#c3b7b8 bg:#403838"
format = "[$version:$virtualenv ]($style)"
[status]
disabled=false
style = "fg:red bg:#86BBD8 bold strikethrough"
symbol = ""
format = "[$symbol$status]($style)"
[custom.env_alert]
detect_files = [".env"]
symbol = " "
style = "fg:yellow blink"
#format
[custom.poetry_env]
when = """
! {[[ "$VIRTUAL_ENV" == *pypoetry* ]] || env=$(poetry env info -p 2>/dev/null) && [[ "$(which python)" == *"$env"* ]]}
"""
style = "blink"
symbol = "🐍 "
format = "[$symbol]($style)"
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "fg:#352e2e bg:#c3b7b8"
format = '[ $time ]($style)'
[kubernetes]
disabled = false
style = "fg:#fff1f3 bg:#8c8384"
symbol = ""
format = "[$symbol $context( ($namespace))]($style)"
[kubernetes.context_aliases]
"local" = "⛵ "
# You can also replace your username with a neat symbol like to save some space
[username]
show_always = false
style_user = "bg:#fd6883 fg:#191515"
style_root = "bg:#fd6883 fg:#191515"
format = '[$user ]($style)'
[hostname]
ssh_only = false
ssh_symbol = "☎️"
style = "bg:#fd6883 fg:#191515"
format = "[ $hostname $ssh_symbol]($style)"
[directory]
style = "fg:#211c1c bg:#f38d70"
repo_root_style = "fg:#fff1f3 bg:#f38d70"
read_only = " "
read_only_style = "fg:#a8a9eb bg:#f38d70"
repo_root_format = "[ $before_root_path]($style)[$repo_root]($repo_root_style)[$path ]($style)[$read_only]($read_only_style)"
format = "[ $path ]($style)[$read_only]($read_only_style)"
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" = " "
"/home/data/redshred" = " "
[c]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[docker_context]
symbol = " "
style = "bg:#06969A"
format = '[ $symbol $context ]($style) $path'
[elixir]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = ""
style = "fg:#2c2525 bg:#f9cc6c"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "fg:#2c2525 bg:#f9cc6c"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[nodejs]
# get rid of node_modules since I don't want this on the home screen
detect_folders = []
symbol = ""
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#86BBD8 fg:white"
format = '[ $symbol ($version) ]($style)'