-
Notifications
You must be signed in to change notification settings - Fork 2
/
oh-my-posh-lucas.omp.json
124 lines (124 loc) · 4.16 KB
/
oh-my-posh-lucas.omp.json
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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
// This block is just for a horizontal rule across the terminal window
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none",
"command": "printf '%*s\n' \"${COLUMNS:-$(tput cols)}\" '' | tr ' ' \u2500",
"shell": "zsh"
},
"template": "{{ .Output }}",
"foreground": "#585858",
"type": "command",
"style": "plain"
}
],
"newline": true
},
// This block is the first line of the prompt, containing the dir/git/etc. info
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": " ✘ ",
"foreground": "white",
"background": "red",
"type": "exit",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "{{ if gt .Code 0 }}<red>\ue0b0</>{{end}} \udb85\udcde ",
"foreground": "#000000",
"background": "#d3d7cf",
"type": "text",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none",
"folder_icon": "\udb80\ude53",
"home_icon": "~",
"mapped_locations": {
"~/repos/": "/"
},
"max_depth": 2,
"style": "agnoster_short"
},
"template": " \uf07c {{ .Path }} ",
"foreground": "#e4e4e4",
"powerline_symbol": "\ue0b0",
"background": "#3465a4",
"type": "path",
"style": "powerline"
},
// Only show the node stuff if there is a mismatch between the actual and expected version
{
"properties": {
"cache_duration": "none"
},
"template": " {{ if .Mismatch }}\ue718{{ .Full }} \udb82\udd8e {{ .Expected }} {{ end }}",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#6CA35E",
"type": "node",
"style": "powerline"
},
{
"properties": {
"branch_icon": "\ue725 ",
"branch_max_length": 40,
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"merge_icon": "<red>merge </>",
"truncate_symbol": "\u2026"
},
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if or .Working.Changed .Staging.Changed .StashCount }} {{ end }}{{ if gt .Working.Unmerged 0 }}<red>\uf071{{ .Working.Unmerged }}</>{{ end }}{{ if gt .StashCount 0 }}<#275EAA>\udb80\ude40{{ .StashCount }}</>{{ end }}{{ if or .Staging.Added .Staging.Modified .Staging.Deleted }}<#2431F5>\uf01c{{ add (.Staging.Added) (.Staging.Modified) (.Staging.Deleted) }}</>{{ end }}{{ if gt .Working.Modified 0 }}<#A12916>\uf040{{ .Working.Modified }}</>{{ end }}{{ if gt .Working.Deleted 0 }}<#8a4801>\uf1f8{{ .Working.Deleted }}</>{{ end }}{{ if gt .Working.Untracked 0 }}<#555753>\uf059{{ .Working.Untracked }}</>{{ end }} ",
"foreground": "#E4E4E4",
"powerline_symbol": "\ue0b0",
"background": "#3B8524",
"type": "git",
"style": "powerline",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#323734{{ end }}"
],
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}"
]
}
],
"newline": true
},
// This block is the second line containing the prompt itself
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": "❯",
"foreground": "#80D540",
"type": "text",
"style": "plain"
}
],
"newline": true
}
],
"version": 3,
"final_space": true
}