-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.omp.yml
126 lines (114 loc) · 3.39 KB
/
theme.omp.yml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
console_title_template: >-
{{ $pwd := .PWD -}}
{{ .Shell }} in {{ with $repo := .Segments.Git -}}
{{ if (gt (sub (len $pwd) (len $repo.Dir)) 20) -}}
git:{{ $repo.RepoName }}/…/{{ base $pwd }}
{{- else -}}
git:{{ $repo.RepoName }}{{ trimPrefix $repo.Dir $pwd}}
{{- end }}
{{- else -}}
{{ .Folder }}
{{- end }}
final_space: true
shell_integration: true
palette:
# https://colorkit.co/palette/02944e-4f0193-f1c516-eb850d-e44403-05a3e2-f7f6f5-7c7b7b-464646-101010/
green: "#02944e"
purple: "#4f0193"
darkPurple: "#940248" # not in palette
yellow: "#f1c516"
orange: "#eb850d"
red: "#e44403"
blue: "#05a3e2"
white: "#f7f6f5"
gray: "#7c7b7b"
darkGray: "#464646"
black: "#101010"
blocks:
- type: prompt
alignment: left
segments:
- type: shell
style: diamond
foreground: p:white
background: p:purple
properties:
mapped_shell_names:
powershell: PS
pwsh: PS
- type: python
style: powerline
powerline_symbol: ""
foreground: p:white
background: p:darkPurple
template: " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "
- type: executiontime
style: powerline
powerline_symbol: ""
foreground: p:black
background: p:orange
properties:
style: austin
- type: status
style: powerline
powerline_symbol: ""
foreground: p:white
background: p:blue
background_templates:
- "{{ if gt .Code 0 }}p:red{{ end }}"
properties:
always_enable: true
- type: session
style: powerline
powerline_symbol: ""
foreground: p:white
background: p:blue
template: " {{ if .SSHSession }} {{ end }}{{ .UserName }} "
- type: root
style: powerline
powerline_symbol: ""
foreground: p:white
background: p:red
template: " "
- type: path
style: powerline
powerline_symbol: ""
foreground: p:black
background: p:gray
template: ' {{ path .Path .Location }} {{ repeat .StackCount "" }}'
properties:
style: full
- type: prompt
alignment: left
newline: true
segments:
- type: git
style: diamond
trailing_diamond: ""
foreground: p:white
foreground_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}"
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}"
- "{{ if gt .Ahead 0 }}p:black{{ end }}"
background: p:green
background_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}"
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}"
- "{{ if gt .Ahead 0 }}p:yellow{{ end }}"
- "{{ if gt .Behind 0 }}p:orange{{ end }}"
template: " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }}{{ end }}{{
.HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed
}} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String
}}{{ end }} "
properties:
branch_icon: " "
fetch_status: true
debug_prompt:
background: transparent
template: "<p:white,p:red> DBG </><p:red,transparent></> "
secondary_prompt:
background: transparent
template: "<p:black,p:gray> </><p:gray,transparent></> "
# vim: set et sw=2: