-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.oh-my-posh.omp.yaml
74 lines (73 loc) · 2.51 KB
/
.oh-my-posh.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
console_title_template: "{{ .Shell }} in {{ .Folder }}"
blocks:
- type: prompt
alignment: left
segments:
- properties:
cache_duration: none
template: "{{ .PromptMark }}"
foreground: "#80ffea"
type: iterm
style: plain
interactive: true
- properties:
cache_duration: none
template: <b>{{.Context}}</b>{{with .Namespace}}{{if not (eq . "default")}}:{{abbrev 45 .}}{{end}}{{end}}
foreground: "#C6FF00"
background: "#33691E"
type: kubectl
style: powerline
foreground_templates:
- "{{if or (contains \"prod\" .Context) (contains \"grid\" .Context) }}#FFCDD2{{end}}"
- "{{if hasPrefix \"ei\" .Context }}#FFFFFF{{end}}"
background_templates:
- "{{if or (contains \"prod\" .Context) (contains \"grid\" .Context) }}#B71C1C{{end}}"
- "{{if hasPrefix \"ei\" .Context }}#30336b{{end}}"
- properties:
branch_max_length: 35
cache_duration: none
fetch_stash_count: true
fetch_status: true
fetch_upstream_icon: true
template: "{{ .UpstreamIcon }}{{ .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 -}}"
foreground: "#193549"
powerline_symbol:
background: "#fffb38"
type: git
style: powerline
background_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}#bdc810{{ 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
home_icon:
style: folder
foreground: "#ffffff"
powerline_symbol:
background: "#448AFF"
type: path
style: powerline
- properties:
cache_duration: none
threshold: 500
template: " \ueba2 {{ .FormattedMs }}"
foreground: "#ffffff"
powerline_symbol:
background: "#83769c"
type: executiontime
style: powerline
- properties:
cache_duration: none
template: "{{ if and (.Error) (and (ne .Code 130) (ne .Code 0))}} \uea87 {{.Code}}{{ end }}"
foreground: "#ffffff"
powerline_symbol:
background: "#00897b"
type: status
style: powerline
background_templates:
- "{{ if .Error }}#e91e63{{ end }}"
version: 3
final_space: true