mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
66 lines
1.9 KiB
JSON
66 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#BF231D",
|
|
"style": "plain",
|
|
"template": " \uf0e7 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#EF7D00",
|
|
"style": "plain",
|
|
"template": " {{ .Icon }} ",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#424242",
|
|
"style": "plain",
|
|
"template": "{{ .UserName }}",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#424242",
|
|
"foreground_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#053F22{{ end }}",
|
|
"{{ if or (gt .Ahead 0) (gt .Behind 0) }}#0A703E{{ end }}"
|
|
],
|
|
"properties": {
|
|
"branch_max_length": 30,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"style": "plain",
|
|
"template": " [{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#BD6200> \uf044 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#053F22> \uf046 {{ .Staging.String }}</>{{ end }}] ",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#424242",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .Path }}",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"foreground": "#E0E0E0",
|
|
"style": "plain",
|
|
"template": "\ue0b0 ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 2
|
|
}
|