blob: 77b0b3c58667c8ddf52d99ba501486a96a5bc6ad (
plain)
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
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
final_space: true
version: 2
blocks:
- type: prompt
alignment: left
segments:
- type: text
style: plain
foreground: magenta
template: "[{{ .Shell }}]"
- type: python
style: plain
foreground: yellow
template: "[{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ end }}]"
- type: path
style: plain
foreground: cyan
properties:
style: letter
- type: git
style: plain
foreground: green
template: "({{ .HEAD }})"
properties:
branch_icon: ""
- type: prompt
alignment: right
segments:
- type: executiontime
style: plain
foreground: 'cyan'
template: "[{{ .FormattedMs }}]"
properties:
style: austin
threshold: 500
- type: time
style: plain
foreground: yellow
- type: prompt
alignment: left
newline: true
segments:
- type: text
style: plain
template: "$"
foreground: green
foreground_templates:
- '{{ if gt .Code 0 }}red{{ end }}'
|