-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheadline-base.omp.json
139 lines (139 loc) · 4.12 KB
/
headline-base.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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"type": "prompt",
"segments": [
{
"foreground_templates": [
"{{ if .SSHSession }}magenta{{ end }}",
"{{ if .WSL }}:lightMagenta{{ end }}",
"red"
],
"style": "plain",
"type": "session",
"template": "<b><o>{{ .UserName }}</o></b>"
},
{
"foreground": "darkGray",
"style": "plain",
"type": "text",
"template": "<o>@</o>"
},
{
"foreground": "yellow",
"style": "plain",
"type": "session",
"template": "<b><o>{{ .HostName }}</o></b><darkGray><o>: </o></>"
},
{
"foreground": "blue",
"style": "plain",
"type": "path",
"properties": {
"folder_separator_icon": "/",
"style": "full"
},
"template": "<b><o> {{ .Path }}</o></b>"
},
{
"foreground": "cyan",
"style": "accordion",
"type": "git",
"properties": {
"branch_icon": " "
},
"template": "<darkGray><o> </o></><b><o>{{ url .HEAD .UpstreamURL }}</o></b>"
},
{
"foreground": "darkGray",
"style": "accordion",
"type": "git",
"properties": {
"fetch_status": true,
"fetch_stash_count": true
},
"template": "{{ if or .Staging.Changed (lt .Staging.Modified .Working.Modified) (and .Working.Changed (not .Staging.Modified)) .Ahead .Behind (gt .StashCount 0) }}<o> [</o>{{ end }}"
},
{
"foreground": "magenta",
"style": "accordion",
"type": "git",
"properties": {
"fetch_status": true
},
"template": "{{ if or .Staging.Changed (lt .Staging.Modified .Working.Modified) (and .Working.Changed (not .Staging.Modified)) }}<b><o>{{ if .Staging.Changed }}+{{ end }}{{ if lt .Staging.Modified .Working.Modified }}!{{ end }}{{ if and .Working.Changed (not .Staging.Modified) }}?{{ end }}</o></b>{{ end }}"
},
{
"foreground": "magenta",
"style": "accordion",
"type": "git",
"properties": {
"fetch_status": true
},
"template": "{{ if or .Ahead .Behind }}<b><o>{{ if gt .Behind 0 }}↓{{ end }}{{ if gt .Ahead 0 }}↑{{ end }}{{ if eq .Behind .Ahead }}↕{{ end }}</o></b>{{ end }}"
},
{
"foreground": "magenta",
"style": "accordion",
"type": "git",
"properties": {
"fetch_status": true,
"fetch_stash_count": true
},
"template": "{{ if gt .StashCount 0 }}<b><o>*</o></b>{{ end }}"
},
{
"foreground": "darkGray",
"style": "accordion",
"type": "git",
"properties": {
"fetch_status": true,
"fetch_stash_count": true
},
"template": "{{ if or .Staging.Changed (lt .Staging.Modified .Working.Modified) (and .Working.Changed (not .Staging.Modified)) .Ahead .Behind (gt .StashCount 0) }}<o>] </o>{{ end }}"
}
]
},
{
"alignment": "right",
"type": "prompt",
"filler": "<darkGray><o> </o></>",
"segments": [
{
"foreground": "darkGray",
"style": "plain",
"type": "text",
"template": "<o> </o>",
"interactive": false
}
]
},
{
"alignment": "left",
"type": "prompt",
"newline": true,
"segments": [
{
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}",
"default"
],
"style": "plain",
"type": "text",
"template": "$ "
}
]
}
],
"secondary_prompt": {
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}",
"default"
],
"template": "$ "
},
"final_space": false,
"version": 2
}