-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkronos-lite.omp.json
More file actions
200 lines (200 loc) · 7 KB
/
Copy pathkronos-lite.omp.json
File metadata and controls
200 lines (200 loc) · 7 KB
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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 4,
"final_space": true,
"maps": {
"user_name": {
"arthurm": "am",
"arthur": "a",
"root": "⚡"
},
"host_name": {
"uPrecision.mitchell.click": "\u00b5P",
"pi5.mitchell.click": "\u03C05",
"pi-test.mitchell.click": "\u03C0-Tst",
"XPS15.mitchell.click": "XPS15",
"Docker-LXC": "D-LXC"
}
},
"palette": {
"cmd_bg_bad": "#CC1010",
"cmd_bg_good": "#4caf50",
"cmd_fg": "#FFFFFF",
"git_bg": "#B7BDF8",
"git_bg_ahdbhnd": "#c5e478",
"git_bg_ahead": "#C792EA",
"git_bg_behind": "#C792EA",
"git_bg_changed": "#ffeb95",
"git_fg": "#011627",
"git_fg_stage_ch": "#ef5350",
"path_bg_ro": "#f45454",
"path_bg_rw": "#F5BDE6",
"path_fg_ro": "#DAEAEA",
"path_fg_rw": "#494D64",
"user_bg": "#8AADF4",
"user_bg_ssh": "#e2913b",
// "user_fg": "#FFFFFF",
"user_fg": "#000000",
// "user_fg_ssh": "#494D64"
"user_fg_ssh": "#000000",
"bat_fg": "#193549",
"bat_bg": "#ffeb3b",
"bat_charge": "#40c4ff",
"bat_discharge": "#ff5722",
"bat_full": "#4caf50"
},
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "git",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "p:git_fg",
"background": "p:git_bg",
"cache": {
"duration": "0h",
"strategy": "folder"
},
"options": {
"branch_icon": "\ue725 ",
"cherry_pick_icon": "\ue29b ",
"commit_icon": "\uf417 ",
"fetch_status": true,
"fetch_upstream_icon": true,
"merge_icon": "\ue727 ",
"no_commits_icon": "\uf0c3 ",
"rebase_icon": "\ue728 ",
"revert_icon": "\uf0e2 ",
"tag_icon": "\uf412 "
},
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:git_bg_changed{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:git_bg_ahdbhnd{{ end }}",
"{{ if gt .Ahead 0 }}p:git_bg_ahead{{ end }}",
"{{ if gt .Behind 0 }}p:git_bg_behind{{ end }}"
]
},
{
"type": "python",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "#ffd43b",
"background": "#306998",
"display_mode": "environment",
"template": " \ue73c {{ .Venv }} "
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "battery",
"style": "powerline",
// "leading_powerline_symbol": "\ue0b4",
"leading_powerline_symbol": "\ue0b6",
// "leading_powerline_symbol": " ",
// "powerline_symbol": "",
// "leading_diamond": "\ue0b6",
"powerline_symbol": "\ue0b4",
// "trailing_diamond": "\ue0b4",
"foreground": "p:bat_fg",
"background": "p:bat_bg",
"background_templates": [
"{{if eq \"Charging\" .State.String}}p:bat_charge{{end}}",
"{{if eq \"Discharging\" .State.String}}p:bat_discharge{{end}}",
"{{if eq \"Full\" .State.String}}p:bat_full{{end}}"
],
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}%",
"options": {
"discharging_icon": " ",
"charging_icon": " ",
"charged_icon": " ",
"not_charging_icon": " "
}
},
{
"type": "os",
"style": "diamond",
// "powerline_symbol": "\ue0b4",
// "leading_diamond": "\ue0b6",
"foreground": "p:user_fg",
"background": "p:user_bg",
"foreground_templates": [
"{{ if .Segments.Session.SSHSession }}p:user_fg_ssh{{ end }}"
],
"background_templates": [
"{{ if .Segments.Session.SSHSession }}p:user_bg_ssh{{ end }}"
],
"template": "{{.Icon}} "
},
{
"type": "session",
"style": "diamond",
"foreground": "p:user_fg",
"background": "p:user_bg",
// "powerline_symbol": "\ue0b4",
// "template": "{{if .Root}} \uf41e {{end}}{{if .SSHSession}} \uf43d {{end}}{{.UserName}}@{{$hn:=replaceP \"[.].*\" .HostName \"\" }}{{ $l:=len $hn }}{{ if gt $l 9 }}{{trunc 8 $hn}}\uf434{{ else }}{{$hn}}{{ end }} ",
"template": "{{if .Root}}\uf41e {{end}}{{if .SSHSession}}\ueba9 {{end}}{{.UserName}}@{{.HostName}}",
"foreground_templates": [
"{{ if .SSHSession }}p:user_fg_ssh{{ end }}"
],
"background_templates": [
"{{ if .SSHSession }}p:user_bg_ssh{{ end }}"
]
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b4",
"foreground": "p:path_fg_rw",
"background": "p:path_bg_rw",
"foreground_templates": [
"{{ if not .Writable }}p:path_fg_ro{{ end }}"
],
"background_templates": [
"{{ if not .Writable }}p:path_bg_ro{{ end }}"
],
// "template": "{{ if not .Writable }} \uf456{{ end }} {{if .Segments.Session.SSHSession}}{{ $sftp := list \"sftp://\" .UserName \"@\" .HostName .Segments.Path.Location | join \"\"}}{{ url .Path $sftp }}{{else}}{{ path .Path .Location }}{{end}} ",
// "template": "{{ if not .Writable }} \uf456{{ end }} {{ if .Segments.Session.SSHSession }}{{ $sftp := list \"sftp://\" .UserName \"@\" .HostName .Segments.Path.Location | join \"\" }}{{ url .Path $sftp }}{{ else }}{{ path .Path .Location }}{{ end }} ",
"template": "{{ if not .Writable }} \uf456{{ end }} {{ path .Path .Location }} ",
// "template": "{{ if not .Writable }} \uf456{{ end }} {{ path .Path .Location }}{{end}} ",
"options": {
"folder_icon": "\uf115",
"home_icon": "\uf015",
"style": "agnoster_short",
"max_depth": 2,
// "folder_separator_icon": " \uf101 ",
"folder_separator_icon": " \uf105 ",
"mapped_locations": {
"~/Documents/Software": "\uf09b",
"/docker": "\uf308"
},
"mapped_locations_enabled": true
}
},
{
"type": "status",
"style": "powerline",
"foreground": "p:cmd_fg",
"background": "p:cmd_bg_good",
"template": "{{ if gt .Code 0 }} \uf421{{ else }} \uf42e{{ end }} ",
"powerline_symbol": "\ue0b4",
"background_templates": [
"{{ if gt .Code 0 }}p:cmd_bg_bad{{ end }}"
],
"options": {
"always_enabled": true
}
}
]
}
]
}