-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathxposh.minimal.omp.json
116 lines (116 loc) · 3.92 KB
/
xposh.minimal.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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .PWD }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"cache_duration": "none"
},
"template": "\u250c {{ if matchP \"bash|zsh\" .Shell }} {{ .UserName }}@{{ .HostName }} {{ end }}",
"foreground": "#ffffff",
"background": "#D99B0E"
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"cache_duration": "none"
},
"template": " {{ if .Env.ShellName }}{{ .Env.ShellName }}{{ else }}{{ .Shell }}{{ end }} ",
"foreground": "#ffffff",
"background": "#E74C3C"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "#ffffff",
"background": "#00d9d9",
"properties": {
"cache_duration": "none",
"folder_name_fallback": false
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"cache_duration": "none",
"always_enabled": true
},
"template": " {{ .FormattedMs }} ",
"foreground": "#ffffff",
"background": "#AC61CC"
},
{
"type": "text",
"template": "\n",
"style": "plain"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"cache_duration": "none",
"home_icon": "~",
"style": "full"
},
"template": "\u2514 {{ if eq .OS \"windows\" }}{{ .Path }}{{ else }}{{ replaceP \"\\\\$\" .Path \"\\\\$\" }}{{ end }} ",
"foreground": "#ffffff",
"background": "#0095e9"
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
"foreground": "#ffffff",
"background": "#f8677b",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"properties": {
"cache_duration": "none",
"branch_icon": "\ue0a0 ",
"branch_identical_icon": "\u25cf",
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"cache_duration": "none",
"always_enabled": true
},
"template": " {{ if .Root }}{{ if eq .Code 0 }}#{{ else }}<s>#</s>{{ end }}{{ else }}{{ if eq .Code 0 }}${{ else }}<s>$</s>{{ end }}{{ end }} ",
"foreground": "#ffffff",
"background": "#28B764",
"background_templates": [
"{{ if gt .Code 0 }}#ff0044{{ end }}"
]
}
],
"newline": true
}
],
"version": 3,
"final_space": true
}