-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiamchrishckns.omp.yaml
executable file
·139 lines (124 loc) · 4 KB
/
iamchrishckns.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
# ANSI Borders
# ┌──┬──┐ ╭╮
# │ │ │ ╰╯
# ├──┼──┤
# │ │ │
# └──┴──┘
# Theme colors:
# Decoration -> green
# Default -> lightBlue
# Root -> lightRed
# Available colors:
# black red green yellow blue magenta cyan white
# darkGray lightRed lightGreen lightYellow lightBlue lightMagenta lightCyan lightWhite
version: 2
palette:
text: lightBlue
textAlt: magenta
textRoot: red
textKubernetes: "#40C4FF"
accent: "#00C853"
transient_prompt:
template: "{{ if .Root }}<p:textRoot></>{{ else }}<p:text></>{{ end }} "
blocks:
# Left prompt first line
- type: prompt
alignment: left
segments:
- type: os
style: plain
foreground: p:text
template: "<p:accent>(</>{{ if .WSL }}WSL at {{ end }}{{.Icon}}<p:accent>)</>"
- type: session
style: plain
foreground: p:text
foreground_templates:
- "{{ if .Root }}p:textRoot{{ end }}"
template: "<p:accent>─(</>{{ .UserName }} on {{ .HostName }}<p:accent>)</>"
- type: path
style: plain
min_width: 100
foreground: p:textAlt
properties:
folder_separator_icon: <#c0c0c0>/</>
style: full
template: <p:accent>-(</>{{ .Path }}<p:accent>)</>
- type: path
style: plain
max_width: 100
foreground: p:textAlt
properties:
folder_separator_icon: <#c0c0c0>/</>
style: agnoster_short
template: <p:accent>-(</>{{ .Path }}<p:accent>)</>
# Right prompt first line
- type: prompt
alignment: right
filler: " "
segments:
- type: kubectl
style: plain
alias: "Kubectl"
min_width: 80
foreground: p:textKubernetes
foreground_templates:
- "{{ if contains 'prod' .Context }}red{{ end }}"
properties:
parse_kubeconfig: true
templates:
- "<p:accent>(</>"
- "{{ if .Context }}ﴱ {{ .Context }}{{ end }}"
- "{{ if .Namespace }} <p:accent>{{.Namespace}}</>{{ end }}"
- "{{ if .Cluster }} @ {{ .Cluster }}{{ end }}"
- "<p:accent>)</>"
- type: session
style: plain
foreground: p:text
template: "{{ if .SSHSession }}<p:accent>{{ if .Segments.Kubectl.Output }}-{{ end }}(</>SSH<p:accent>)</>{{ end }}"
- type: battery
style: plain
min_width: 80
foreground: p:text
foreground_templates:
- "{{if eq 'Charging' .State.String}}#40c4ff{{end}}"
- "{{if eq 'Discharging' .State.String}}#ff5722{{end}}"
- "{{if eq 'Full' .State.String}}#4caf50{{end}}"
properties:
charging_icon:
discharging_icon:
charged_icon:
template: "<p:accent>-(</>{{ .Icon }} {{ .Percentage }}<p:accent>)</>"
# Left prompt second line
- type: prompt
alignment: left
newline: true
segments:
- type: git
style: plain
foreground: p:text
properties:
fetch_status: true
fetch_stash_count: true
fetch_worktree_count: true
fetch_upstream_icon: true
branch_max_length: 0
templates:
- "<p:accent>(</>"
- "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}"
- "{{ 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 }}"
- "<p:accent>)</>"
# Left prompt third line
- type: prompt
alignment: left
newline: true
segments:
- type: text
style: plain
foreground: p:text
foreground_templates:
- "{{ if .Root }}p:textRoot{{ end }}"
template: " "