最后活跃于 1704423814

DraxCodes's Avatar DraxCodes 修订了这个 Gist 1704423814. 跳至此修订

1 file changed, 121 insertions

draxv1.omp.json(file created)

@@ -0,0 +1,121 @@
1 + {
2 + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
3 + "blocks": [
4 + {
5 + "alignment": "left",
6 + "segments": [
7 + {
8 + "background": "#003543",
9 + "foreground": "#00c983",
10 + "leading_diamond": "\ue0b6",
11 + "style": "diamond",
12 + "template": "{{ .Icon }} {{ .HostName }} ",
13 + "type": "os"
14 + },
15 + {
16 + "background": "#DA627D",
17 + "foreground": "#ffffff",
18 + "powerline_symbol": "\ue0b0",
19 + "properties": {
20 + "folder_icon": "\uf115",
21 + "folder_separator_icon": "\\",
22 + "home_icon": "\ueb06",
23 + "style": "full"
24 + },
25 + "style": "powerline",
26 + "template": " <#000>\uf07b \uea9c</> {{ .Path }} ",
27 + "type": "path"
28 + },
29 + {
30 + "type": "dotnet",
31 + "style": "powerline",
32 + "powerline_symbol": "\ue0b0",
33 + "foreground": "#ffffff",
34 + "background": "#800080",
35 + "template": "  {{ .Full }} "
36 + },
37 + {
38 + "background": "#FCA17D",
39 + "foreground": "#ffffff",
40 + "powerline_symbol": "\ue0b0",
41 + "properties": {
42 + "branch_icon": " <#ffffff>\ue0a0 </>",
43 + "fetch_stash_count": true,
44 + "fetch_status": true,
45 + "fetch_upstream_icon": true
46 + },
47 + "style": "powerline",
48 + "template": " \u279c ({{ .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 }}) ",
49 + "type": "git"
50 + },
51 + {
52 + "background": "#76b367",
53 + "foreground": "#ffffff",
54 + "powerline_symbol": "\ue0b0",
55 + "style": "powerline",
56 + "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
57 + "type": "node"
58 + },
59 + {
60 + "background": "#83769c",
61 + "foreground": "#ffffff",
62 + "powerline_symbol": "\ue0b0",
63 + "properties": {
64 + "always_enabled": true
65 + },
66 + "style": "powerline",
67 + "template": " \ueba2 {{ .FormattedMs }} ",
68 + "type": "executiontime"
69 + },
70 + {
71 + "background": "#33658A",
72 + "foreground": "#ffffff",
73 + "powerline_symbol": "\ue0b0",
74 + "properties": {
75 + "time_format": "3:04 PM"
76 + },
77 + "style": "powerline",
78 + "template": " \uf017 {{ .CurrentDate | date .Format }} ",
79 + "type": "time"
80 + },
81 + {
82 + "background": "#2e9599",
83 + "background_templates": [
84 + "{{ if gt .Code 0 }}red{{ end }}"
85 + ],
86 + "foreground": "#ffffff",
87 + "powerline_symbol": "\ue0b0",
88 + "properties": {
89 + "always_enabled": true
90 + },
91 + "style": "diamond",
92 + "template": " {{ if gt .Code 0 }}\uf421{{ else }}\uf469{{ end }}",
93 + "trailing_diamond": "\ue0b4",
94 + "type": "status"
95 + }
96 + ],
97 + "type": "prompt"
98 + },
99 + {
100 + "alignment": "left",
101 + "newline": true,
102 + "segments": [
103 + {
104 + "foreground": "#cd5e42",
105 + "style": "plain",
106 + "template": "\ue3bf ",
107 + "type": "root"
108 + },
109 + {
110 + "foreground": "#CD4277",
111 + "style": "plain",
112 + "template": " <#45F1C2><b>\u26a1</b></><b>{{ .UserName }}</b> <#26C6DA>\u276f</><#45F1C2>\u276f</>",
113 + "type": "text"
114 + }
115 + ],
116 + "type": "prompt"
117 + }
118 + ],
119 + "final_space": true,
120 + "version": 2
121 + }
更新 更早