-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacinposh.omp.yaml
155 lines (154 loc) · 4.92 KB
/
macinposh.omp.yaml
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
blocks:
- alignment: left
segments:
# OS logo
- background: '#009cdf'
foreground: '#F9F6EF'
leading_diamond: ╭─
style: diamond
template: '{{.Icon}} '
type: os
# Session User Name
- background: '#009cdf'
foreground: '#F9F6EF'
style: diamond
template: '{{.UserName}}'
type: session
# Shell Name
- background: '#d6deeb'
foreground: '#011627'
powerline_symbol:
style: powerline
template: {{ .Name}}
type: shell
- background: '#d75f00'
foreground: '#f2f3f8'
powerline_symbol:
properties:
folder_icon:
folder_separator_icon: 易
home_icon:
max_depth: 2
style: agnoster_short
style: powerline
template: '{{ .Path}} '
type: path
- background: '#fffb38'
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 }}'
foreground: '#193549'
leading_diamond:
powerline_symbol:
properties:
branch_max_length: 25
fetch_stash_count: true
fetch_status: true
fetch_upstream_icon: true
style: powerline
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 }} '
trailing_diamond:
type: git
- background: '#1E9748'
foreground: '#F9F6EF'
powerline_symbol:
properties:
display_mode: files
fetch_version: true
home_enabled: true
style: powerline
template: ' cmake {{ .Full }} '
type: cmake
- background: '#906cff'
foreground: '#100e23'
powerline_symbol:
properties:
display_mode: files
fetch_virtual_env: true
home_enabled: true
style: powerline
template: ' {{ .Full }} '
type: python
- background: '#4063D8'
foreground: '#F9F6EF'
powerline_symbol:
properties:
display_mode: files
home_enabled: true
style: powerline
template: ' {{ .Full }}'
type: java
type: prompt
- alignment: right
segments:
- background: '#E23838'
foreground: '#F9F6EF'
invert_powerline: true
powerline_symbol:
properties:
always_enabled: true
style: austin
style: powerline
template: ' 羽{{ .FormattedMs }} '
type: executiontime
- background: '#5ebd3e'
background_templates:
- '{{if eq "Charging" .State.String}}#40c4ff{{end}}'
- '{{if eq "Discharging" .State.String}}#ff5722{{end}}'
- '{{if eq "Full" .State.String}}#4caf50{{end}}'
foreground: '#ffffff'
powerline_symbol:
properties:
charged_icon: ' '
charging_icon: ' '
discharging_icon: ' '
not_charging_icon:
style: powerline
template: ' {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}% '
type: battery
- background: '#2e4755'
foreground: '#ffb900'
style: diamond
template: ' CPU: {{ round .PhysicalPercentUsed .Precision}}% | '
type: sysinfo
- background: '#2e4755'
foreground: '#ffb900'
properties:
precision: 0
style: diamond
template: >-
RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64)
1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB
type: sysinfo
- background: '#973999'
foreground: '#ffffff'
invert_powerline: false
powerline_symbol:
properties:
time_format: '3:04 PM'
style: powerline
template: ' {{ .CurrentDate | date .Format }} '
type: time
type: prompt
- alignment: left
newline: true
segments:
- foreground: '#21c7c7'
style: plain
template: ╰─
type: text
- foreground: '#e0f8ff'
foreground_templates:
- '{{ if gt .Code 0 }}#ef5350{{ end }}'
properties:
always_enabled: true
style: plain
template: ❯$
type: exit
type: prompt
console_title_template: '{{ .Shell }} in {{ .Folder }}'
final_space: true
version: 2