Skip to content

Commit 85c1c41

Browse files
committed
Update configurations: Oh My Posh
Signed-off-by: Dragon1573 <[email protected]>
1 parent 77a5cdc commit 85c1c41

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

Diff for: oh-my-posh/customize.omp.json

+12-26
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,28 @@
77
"type": "prompt",
88
"alignment": "left",
99
"segments": [
10-
{
11-
"type": "root",
12-
"style": "plain",
13-
"foreground": "p:red",
14-
"template": "!"
15-
},
1610
{
1711
"type": "time",
1812
"style": "plain",
19-
"foreground": "p:pink",
13+
"foreground": "p:blue",
14+
"template": "{{ .CurrentDate | date .Format }} ",
2015
"properties": {
2116
"time_format": "15:04:05"
2217
}
2318
},
24-
{
25-
"type": "os",
26-
"style": "plain",
27-
"foreground": "p:os",
28-
"template": "{{.Icon}} "
29-
},
3019
{
3120
"type": "python",
3221
"style": "plain",
3322
"foreground": "p:gold",
3423
"template": "{{ if .Error }}{{ .Error }}{{ else }}({{ if .Venv }}{{ .Venv }}{{ else }}cp{{ .Major }}{{ .Minor }}{{ end }}){{ end }} "
3524
},
36-
{
37-
"type": "session",
38-
"style": "plain",
39-
"foreground": "p:blue",
40-
"template": "{{ .UserName }} "
41-
},
4225
{
4326
"type": "path",
4427
"style": "plain",
4528
"foreground": "p:pink",
4629
"template": "{{ path .Path .Location }} ",
4730
"properties": {
48-
"folder_icon": "..\ue5fe..",
31+
"folder_icon": "...",
4932
"home_icon": "~",
5033
"style": "agnoster_short"
5134
}
@@ -54,13 +37,14 @@
5437
"type": "git",
5538
"style": "plain",
5639
"foreground": "p:lavender",
57-
"template": "{{ .HEAD }} ",
40+
"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 }} ",
5841
"properties": {
5942
"branch_icon": "\ue725 ",
6043
"cherry_pick_icon": "\ue29b ",
6144
"commit_icon": "\uf417 ",
62-
"fetch_status": false,
63-
"fetch_upstream_icon": false,
45+
"fetch_status": true,
46+
"fetch_stash_count": true,
47+
"fetch_upstream_icon": true,
6448
"merge_icon": "\ue727 ",
6549
"no_commits_icon": "\uf0c3 ",
6650
"rebase_icon": "\ue728 ",
@@ -88,14 +72,16 @@
8872
"green"
8973
],
9074
"properties": {
91-
"status_template": "{{ if ne .Code 0 }}{{ .Code | hresult }}{{ end }}"
75+
"status_template": "{{ if ne .Code 0 }}{{ .Code | hresult }}{{ end }}"
9276
}
9377
},
9478
{
9579
"type": "text",
9680
"style": "plain",
97-
"foreground": "p:closer",
98-
"template": "\uf105"
81+
"foreground_templates": [
82+
"{{ if .Root }}p:red{{ else }}p:closer{{ end }}"
83+
],
84+
"template": "pwsh{{ if .Root }}#{{ else }}>{{ end }}"
9985
}
10086
]
10187
}

0 commit comments

Comments
 (0)