-
Notifications
You must be signed in to change notification settings - Fork 3
/
xposh.omp.json
96 lines (96 loc) · 3.39 KB
/
xposh.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
{
"$schema": "",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#F39C12",
"foreground": "#ffffff",
"leading_diamond": "",
"style": "diamond",
"template": "{{ if matchP \"bash|zsh\" .Shell }}<parentBackground>\ue0b0</> {{ .Icon }} {{ .UserName }}@{{ .HostName }} {{ end }}",
"type": "os"
},
{
"background": "#E74C3C",
"foreground": "#ffffff",
"leading_diamond": "",
"style": "diamond",
"template": "<parentBackground>\ue0b0</> \uFCB5 {{ if .Env.ShellName }}{{ .Env.ShellName }}{{ else }}{{ .Shell }}{{ end }} ",
"type": "session"
},
{
"background": "#9B59B6",
"foreground": "#ffffff",
"leading_diamond": "",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": "<parentBackground>\ue0b0</> \uF072 {{ .FormattedMs }} ",
"trailing_diamond": "<b>\ue0b0</b>",
"type": "executiontime"
},
{
"style": "plain",
"template": "\n",
"type": "text"
},
{
"background": "#0095e9",
"foreground": "#ffffff",
"leading_diamond": "",
"powerline_symbol": "\ue0b0",
"properties": {
"home_icon": "~",
"style": "full"
},
"style": "diamond",
"template": "<parentBackground>\ue0b0</> \uF07C {{ if eq .OS \"windows\" }}{{ .Path }}{{ else }}{{ replaceP \"\\\\$\" .Path \"\\\\$\" }}{{ end }} ",
"type": "path"
},
{
"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 }}"
],
"leading_diamond": "",
"foreground": "#ffffff",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"branch_icon": "\uE0A0 ",
"branch_identical_icon": "\u25CF"
},
"style": "diamond",
"template": "<parentBackground>\ue0b0</> {{ .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 }} ",
"type": "git"
},
{
"background": "#2ECC71",
"background_templates": [
"{{ if gt .Code 0 }}#ff0044{{ end }}"
],
"foreground": "#ffffff",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": "<parentBackground>\ue0b0</> {{ if .Root }}{{ if eq .Code 0 }}\uF292{{ else }}\uF198{{ end }}{{ else }}{{ if eq .Code 0 }}\uf0e7{{ else }}\uE315{{ end }}{{ end }} ",
"trailing_diamond": "<b>\ue0b0</b>",
"type": "exit"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .PWD }}",
"final_space": true,
"version": 2
}