-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoh-my-posh.json
92 lines (92 loc) · 3.73 KB
/
oh-my-posh.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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"version": 2,
"palette": {
"black": "#262B44",
"white": "#E0DEF4",
"text": "p:white",
"sep": "#0099cc",
"bg.path": "#007ACC",
"bg.git": "#8954d4",
"bg.python": "#6ca35e",
"bg.executontime": "#c69e26",
"bg.exit.success": "#00897b",
"bg.exit.error": "#e91e63"
},
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "p:bg.path",
"foreground": "p:text",
"leading_diamond": "\ue0b2",
"trailing_diamond": "<background,p:sep>\uE0B0</>",
"properties": {
"style": "folder"
},
"style": "diamond",
"template": " \uf74a {{ .Path }} ",
"type": "path"
},
{
"background": "p:bg.python",
"foreground": "p:text",
"leading_diamond": "<p:sep,background>\uE0B0</>",
"trailing_diamond": "<background,p:sep>\uE0B0</>",
"style": "diamond",
"template": " \uE235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "p:bg.git",
"foreground": "p:text",
"leading_diamond": "<p:sep,background>\uE0B0</>",
"trailing_diamond": "<background,p:sep>\uE0B0</>",
"properties": {
"fetch_stash_count": true,
"fetch_status": true
},
"style": "diamond",
"template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "p:bg.executontime",
"foreground": "p:text",
"leading_diamond": "<p:sep,background>\uE0B0</>",
"trailing_diamond": "<background,p:sep>\uE0B0</>",
"properties": {
"always_enabled": false,
"style": "round"
},
"style": "diamond",
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"foreground": "p:text",
"background": "p:bg.exit.success",
"background_templates": [
"{{ if gt .Code 0 }}p:bg.exit.error{{ end }}"
],
"leading_diamond": "<p:sep,background>\uE0B0</>",
"trailing_diamond": "<background,p:sep>\uE0B0</>",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ",
"type": "exit"
},
{
"style": "diamond",
"template": "<p:sep,transparent>\uE0B0</>",
"type": "text"
}
],
"type": "prompt"
}
]
}