-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathomp.yaml
95 lines (95 loc) · 2.52 KB
/
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
palette:
aqua: "#8ec07c"
blue: "#83a698"
fg: "#ebdbb2"
gray: "#a89984"
purple: "#d3869b"
red: "#cc241d"
white: "#fbf1c7"
secondary_prompt:
template: "❯❯ "
foreground_templates:
- "{{if gt .Code 0}}p:red{{end}}"
- "{{if eq .Code 0}}p:fg{{end}}"
transient_prompt:
template: "\n{{ now | date \"15:04:05\" }}❯ "
foreground_templates:
- "{{if gt .Code 0}}p:red{{end}}"
- "{{if eq .Code 0}}p:fg{{end}}"
blocks:
- type: prompt
alignment: left
overflow: hidden
segments:
- properties:
cache_duration: none
style: full
template: "\n{{ .Path }} "
foreground: p:fg
type: path
style: plain
newline: true
- properties:
branch_icon: "\uf126 "
branch_max_length: 25
cache_duration: none
commit_icon: "@"
fetch_status: true
full_branch_path: true
foreground: p:purple
type: git
style: plain
templates:
- "{{ .HEAD }} "
- "{{ if .Staging.Changed }}\uf067{{ end }}{{ if gt .Working.Untracked 0 }}?{{ else if .Working.Changed }}!{{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}{{ if gt .StashCount 0 }}\uf51e{{ end }} "
- properties:
cache_duration: none
command: $HOME/.zsh/local-prompt.sh 2>/dev/null || true
template: "{{ .Output }} "
foreground: p:blue
type: command
style: plain
- properties:
cache_duration: none
threshold: 1000
template: "{{ .FormattedMs }} "
foreground: p:gray
type: executiontime
style: plain
- type: prompt
alignment: left
segments:
- properties:
cache_duration: none
template: "❯ "
type: text
style: plain
foreground_templates:
- "{{if eq .Code 0}}white{{end}}"
- "{{if gt .Code 0}}p:red{{end}}"
newline: true
tooltips:
- properties:
display_default: true
template: {{ .Profile }}
foreground: p:aqua
type: aws
style: plain
tips:
- aws
- terraform
- template: "\uf2f4 {{.Context}}{{if .Namespace}}/{{.Namespace}}{{end}} "
foreground: p:aqua
type: kubectl
style: plain
tips:
- k
- kubectl
- template: "\uf1a0 {{.Project}} "
foreground: p:aqua
type: gcp
style: plain
tips:
- gcp