mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 03:49:40 -08:00
77 lines
2.3 KiB
JSON
77 lines
2.3 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 }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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"
|
|
},
|
|
{
|
|
"background": "#E0E0E0",
|
|
"foreground": "#424242",
|
|
"powerline_symbol": "\ue0b0",
|
|
"style": "plain",
|
|
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
|
"properties": {
|
|
"text": "\ue0b0"
|
|
},
|
|
"type": "python"
|
|
},
|
|
{
|
|
"foreground": "#E0E0E0",
|
|
"style": "plain",
|
|
"template": "\ue0b0 ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 3
|
|
}
|