forked from JanDeDobbeleer/oh-my-posh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevious-diamonds.omp.yaml
240 lines (240 loc) · 7.75 KB
/
devious-diamonds.omp.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
blocks:
- type: prompt
alignment: left
newline: true
segments:
- type: iterm
style: plain
foreground: cyan
template: "{{ .PromptMark }}"
- type: os
style: diamond
trailing_diamond: <transparent,></>
foreground: cyan
properties:
alpine:
arch:
centos:
debian:
elementary:
fedora:
gentoo:
linux:
macos:
manjaro:
mint:
opensuse:
raspbian:
ubuntu:
windows:
wsl:
wsl_separator:
template: " {{ if .WSL }}{{ end }}{{.Icon}}═"
- type: shell
style: diamond
leading_diamond:
background: green
foreground: black
template: " {{ .Name }} "
- type: session
style: powerline
powerline_symbol:
background: magenta
foreground: black
template: " {{ if .SSHSession }} {{ end }}{{ .UserName }}@{{ .HostName }} "
- type: angular
style: powerline
powerline_symbol:
background: lightRed
foreground: black
properties:
fetch_version: true
template: " ﮰ {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: aws
style: powerline
powerline_symbol:
background: yellow
foreground: black
properties:
display_default: false
template: " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} "
- type: az
style: powerline
powerline_symbol:
background: lightBlue
foreground: black
properties:
display_default: false
template: " ﴃ Subscription {{ .Name }} ({{ if .EnvironmentName | contains 'AzureCloud' }}{{ 'Global' }}{{ else }}{{ .EnvironmentName }}{{ end }}) "
- type: azfunc
style: powerline
powerline_symbol:
background: yellow
foreground: black
properties:
display_mode: files
fetch_version: false
template: " ﴃ {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: go
style: powerline
powerline_symbol:
background: lightCyan
foreground: black
properties:
fetch_version: true
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: java
style: powerline
powerline_symbol:
background: lightCyan
foreground: black
template: " {{ .Full }}"
- type: julia
style: powerline
powerline_symbol:
background: lightCyan
foreground: black
properties:
fetch_version: true
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: kubectl
style: powerline
powerline_symbol:
background: lightYellow
foreground: black
template: " ﴱ {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} "
- type: node
style: powerline
powerline_symbol:
background: lightGreen
foreground: black
properties:
fetch_version: true
template: " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
- type: php
style: powerline
powerline_symbol:
background: lightCyan
foreground: black
template: " {{ .Full }} "
- type: project
style: powerline
powerline_symbol:
background: lightYellow
foreground: black
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }} {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
- type: python
style: powerline
powerline_symbol:
background: lightYellow
foreground: black
properties:
display_mode: files
fetch_virtual_env: false
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: ruby
style: powerline
powerline_symbol:
background: red
foreground: black
properties:
display_mode: files
fetch_version: true
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
- type: time
style: powerline
powerline_symbol:
background: yellow
foreground: black
properties:
time_format: Mon | 15:04:05
template: " {{ .CurrentDate | date .Format }} "
- type: executiontime
style: diamond
trailing_diamond:
background: cyan
foreground: black
properties:
style: austin
threshold: 0
template: " {{ .FormattedMs }} "
- type: prompt
alignment: right
segments:
- type: git
style: diamond
leading_diamond:
trailing_diamond:
background: magenta
foreground: black
properties:
branch_icon: " "
fetch_stash_count: true
fetch_status: true
fetch_upstream_icon: true
fetch_worktree_count: true
template: "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}"
- type: prompt
alignment: left
newline: true
segments:
- type: text
style: plain
foreground: cyan
template: " ╚"
- type: exit
style: diamond
leading_diamond:
background: blue
background_templates:
- "{{ if gt .Code 0 }}red{{ end }}"
foreground: black
properties:
always_enabled: true
template: " {{ if gt .Code 0 }}{{ else }}{{ end }}{{ if eq ( gt .Code 0 ) .Segments.Path.Writable}} {{ end }}"
- type: path
style: powerline
powerline_symbol:
background: blue
background_templates:
- "{{ if not .Writable }}red{{ end }}"
foreground: black
properties:
style: agnoster_short
folder_icon:
folder_separator_icon: " "
home_icon:
max_depth: 3
template: "{{ if eq ( gt .Code 0 ) .Writable }} {{ end }} {{ .Path }}{{ if not .Writable }} {{ end }}{{ if and .Writable .Root }} {{end}}"
- type: text
style: diamond
trailing_diamond:
background: blue
background_templates:
- "{{ if and .Segments.Path.Writable (not .Root) }}{{ else }}red{{ end }}"
foreground: white
properties:
root_icon:
template: "{{ if and .Root ( not .Segments.Path.Writable ) }} {{ end }}{{ if and .Root .Segments.Path.Writable }} {{ end }} \b"
console_title_template: "{{ .Folder }}"
palette:
black: "#1B1A23"
blue: "#9580FF"
black-background: "#22212C"
lightBlue-brightBlue: "#AA99FF"
lightCyan-brightCyan: "#99FFEE"
lightGreen-brightGreen: "#A2FF99"
lightMagenta-brightPurple: "#FF99CC"
lightRed-brightRed: "#FFAA99"
lightWhite-brightWhite: "#FFFFFF"
lightYellow-brightYellow: "#FFFF80"
selection-selectionBackground: "#454158"
comment-brightBlack: "#7970A9"
cyan: "#80FFEA"
green: "#8AFF80"
magenta-purple: "#FF80BF"
red: "#FF9580"
white-cursorColor-foreground: "#F8F8F2"
yellow: "#FFCA80"
version: 2