-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mytheme.ohmyposh.json
199 lines (198 loc) · 5.78 KB
/
.mytheme.ohmyposh.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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "shell",
"style": "diamond",
"foreground": "p:black",
"background": "p:yellow",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b0",
"properties": {
"mapped_shell_names": {
"pwsh": "\udb82\ude0a",
"bash": "\udb80\udea2"
}
}
},
{
"type": "session",
"style": "powerline",
"foreground": "p:black",
"background": "p:yellow",
"powerline_symbol": "\ue0b0",
"template": " {{ if .SSHSession }}\ueba9 {{ .UserName }}@{{ .HostName}} {{ end }} "
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "p:white",
"background": "p:orange",
"template": " \uea83 {{ path .Path .Location }} ",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "p:black",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}",
"{{ if gt .Ahead 0 }}p:white{{ end }}"
],
"background": "p:green",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
"{{ if gt .Ahead 0 }}#49416D{{ end }}",
"{{ if gt .Behind 0 }}#7A306C{{ end }}"
],
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"properties": {
"branch_max_length": 0,
"fetch_status": true,
"fetch_upstream_icon": true
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "p:white",
"background": "p:yellow",
"template": " \uf0e7 "
},
{
"type": "status",
"style": "diamond",
"foreground": "p:white",
"background": "p:blue",
"background_templates": [
"{{ if gt .Code 0 }}p:red{{ end }}"
],
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b4",
"template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ",
"properties": {
"always_enabled": true
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "node",
"style": "plain",
"foreground": "p:green",
"background": "transparent",
"template": "\ue718 ",
"properties": {
"display_mode": "files",
"fetch_package_manager": false,
"home_enabled": false
}
},
{
"type": "go",
"style": "plain",
"foreground": "p:blue",
"background": "transparent",
"template": "\ue626 ",
"properties": {
"fetch_version": false
}
},
{
"type": "python",
"style": "plain",
"foreground": "p:yellow",
"background": "transparent",
"template": "\ue235 ",
"properties": {
"display_mode": "files",
"fetch_version": false,
"fetch_virtual_env": false
}
},
{
"type": "shell",
"style": "plain",
"foreground": "p:white",
"background": "transparent",
"template": "in <p:blue><b>{{ .Name }}</b></> "
},
{
"type": "time",
"style": "plain",
"foreground": "p:white",
"background": "transparent",
"template": "at <p:blue><b>{{ .CurrentDate | date \"15:04:05\" }} </b></>"
}
]
}
],
"tooltips": [
{
"type": "aws",
"tips": [
"aws"
],
"style": "diamond",
"foreground": "p:white",
"background": "p:orange",
"leading_diamond": "\ue0b0",
"trailing_diamond": "\ue0b4",
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"properties": {
"display_default": true
}
},
{
"type": "az",
"tips": [
"az"
],
"style": "diamond",
"foreground": "p:white",
"background": "p:blue",
"leading_diamond": "\ue0b0",
"trailing_diamond": "\ue0b4",
"template": " \uebd8 {{ .Name }} ",
"properties": {
"display_default": true
}
}
],
"transient_prompt": {
"foreground": "p:black",
"background": "transparent",
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "
},
"secondary_prompt": {
"foreground": "p:black",
"background": "transparent",
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> "
},
"palette": {
"black": "#262B44",
"blue": "#4B95E9",
"green": "#59C9A5",
"orange": "#F07623",
"red": "#D81E5B",
"white": "#E0DEF4",
"yellow": "#F3AE35"
}
}