-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.jsonc
More file actions
78 lines (78 loc) · 3.43 KB
/
defaults.jsonc
File metadata and controls
78 lines (78 loc) · 3.43 KB
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
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"version": 3,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "default",
"background": "default",
"template": "\u250C\u2524{{ if .SSHSession }}<lightBlue,>\u2666</>{{ else }}<red,>\u2666</>{{ end }} {{ .HostName }} <black,>\u2591\u2592\u2593</>"
},
{
"type": "path",
"style": "plain",
"foreground": "black",
"background": "foreground",
"properties": {
"folder_separator_icon": " ",
"folder_icon": "\u25BA",
"style": "agnoster",
"cycle": ["red", "green", "blue", "magenta"]
}
},
{
"type": "git",
"style": "plain",
"foreground": "black",
"background": "lightCyan",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}lightBlue{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}lightMagenta{{ end }}",
"{{ if gt .Ahead 0 }}lightGreen{{ end }}",
"{{ if gt .Behind 0 }}lightRed{{ end }}"
],
"template": "<parentBackground,background>\u2593\u2592\u2591</>{{ .HEAD }}{{if .BranchStatus }}{{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} {{ end }}{{ if .Staging.Changed }}{{ .Staging.String }}{{ end }}{{ .Commit.Subject }}<background,default>\u2593\u2592\u2591</>",
"properties": {
"fetch_status": true,
"git_icon": "",
"tag_icon": "",
"merge_icon": "\u2196",
"commit_icon": "\u2727",
"branch_icon": "\u2197",
"branch_ahead_icon": "\u2191",
"branch_behind_icon": "\u2193",
"branch_gone_icon": "",
"branch_identical_icon": "",
"cherry_pick_icon": "",
"rebase_icon": "",
"revert_icon": ""
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "default",
"template": "\u2514\u2524<magenta,>{{ .UserName }}</>\u251C\u2500<red,>\u00BB</>"
}
]
}
],
"transient_prompt": {
"foreground": "default",
"background": "default",
"template": "{{ if .Segments.Status.Error }}<lightWhite,red>{{ .Segments.Status.Code }}</>{{ else }} {{ end }}\u251C\u2500<red,>\u00BB</>"
}
}