-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheap-cloud-azure.omp.json
217 lines (217 loc) · 8.34 KB
/
cheap-cloud-azure.omp.json
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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#1c304b",
"foreground": "#bfd7f8",
"trailing_diamond": "\ue0b0",
"style": "diamond",
"template": "{{if .Env.POSH_MONITORED_AZURE_SUBSCRIPTION }} \uebd8\u2800\uf441\u2800{{ .Env.POSH_MONITORED_AZURE_SUBSCRIPTION }} {{ end }}",
"type": "text"
},
{
"background": "#1c304b",
"foreground": "#bfd7f8",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"style": "diamond",
"template": "{{if .Env.POSH_AZURE_TIME_TILL_RESET }} \uebd8 \udb86\udeec\u2800{{ .Env.POSH_AZURE_TIME_TILL_RESET }} {{ end }}",
"type": "text"
},
{
"background": "#1c304b",
"foreground": "#bfd7f8",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "<background,transparent>\ue0b4</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_RUNNING_SERVERS }}\u2800\uebd8\u2800 {{ .Env.POSH_AZURE_RUNNING_SERVERS }} {{ end }}",
"type": "text"
},
{
"background": "#8a4910",
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "<background,transparent>\ue0b4</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_STATUS }}\u2800\udb84\uddef\u2800 {{ .Env.POSH_AZURE_STATUS }} {{ end }}",
"type": "text"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#331919",
"background_templates": [
"{{ if gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 100.00 }}#1e4123{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 100 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 75) }}#533828{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 75 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 50) }}#553b2b{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 50 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 0) }}#331919{{ end }}"
],
"foreground": "#f1bfbf",
"foreground_templates": [
"{{ if gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 100.00 }}#bcf7c5{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 100 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 75) }}#f5d7c6{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 75 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 50) }}#f3d0ba{{ end }}",
"{{ if and ( lt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 50 ) (gt (.Env.POSH_AZURE_TOTAL_REMAINING | float64) 0) }}#f1bfbf{{ end }}"
],
"trailing_diamond": "<background,transparent>\ue0b0</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_TOTAL_COST }} \uebd8 \uf0d6\u2800${{ .Env.POSH_AZURE_TOTAL_COST }} \uf0e4\u2800${{ .Env.POSH_AZURE_TOTAL_REMAINING }} {{ end }}",
"type": "text"
},
{
"background": "#3a2c52",
"foreground": "#ceb7f1",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "<background,transparent>\ue0b0</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_COST_SERVERS }} \uf02c\u2800{{ .Env.POSH_AZURE_COST_SERVERS }} {{ end }}",
"type": "text"
},
{
"background": "#3a2c52",
"foreground": "#ceb7f1",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "<background,transparent>\ue0b4</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_COST_WEB_SERVERS }} \uf02c\u2800{{ .Env.POSH_AZURE_COST_WEB_SERVERS }} {{ end }}",
"type": "text"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#1e4123",
"foreground": "#bcf7c5",
"trailing_diamond": "<background,transparent>\ue0b4</>",
"style": "diamond",
"template": "{{ if .Env.POSH_AZURE_BIG_SPENDERS }} \uf155\u2800Big Spenders:{{ .Env.POSH_AZURE_BIG_SPENDERS }} {{ end }}",
"type": "text"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#0077c2",
"foreground": "#ffffff",
"style": "diamond",
"template": " \ue641 {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b0",
"type": "time"
},
{
"background": "#0077c2",
"foreground": "#ffffff",
"style": "plain",
"template": "<transparent,background>\ue0b0</></> \uf489 {{ .Name }} <#0077c2,transparent>\ue0b0</>",
"type": "shell"
},
{
"background": "#022046",
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"style": "diamond",
"template": "{{ if .Name }} \uebd8\u2800\u2800 \uf489\u2800\u2800 {{ .Name }} | {{ .Origin }} {{ end }}",
"type": "az"
},
{
"type": "dotnet",
"home_enabled": "true",
"display_mode": "always",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#035d5d",
"template": " {{ .Full }} "
},
{
"background": "#0077c2",
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"style": "diamond",
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }} ",
"trailing_diamond": "\ue0b0",
"type": "session"
},
{
"background": "#ff479c",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
},
"style": "powerline",
"template": " \uf07b {{ .Path }} ",
"type": "path"
},
{
"background": "#fffb38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"foreground": "#193549",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"foreground": "#ffffff",
"leading_diamond": "<transparent,background>\ue0b0</>",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": " \ue23a {{ if gt .Code 0 }}\uf00d {{ reason .Code }}{{ else }}\uf42e{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "status"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#15ff00",
"style": "plain",
"template": " \uf0a4 ",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 2
}