67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#7dafe9",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": "{{ .Path }} ",
|
|
"type": "path"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#ff2f00",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}{{ end }}",
|
|
"{{ if gt .Ahead 0 }}{{ end }}",
|
|
"{{ if gt .Behind 0 }}{{ end }}"
|
|
],
|
|
"properties": {
|
|
"branch_icon": "\ue725 ",
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"style": "powerline",
|
|
"template": "on {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
|
|
"type": "git"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": false,
|
|
"segments": [
|
|
{
|
|
"foreground": "#B48EAD",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "\u276f",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"console_title_template": "{{if .Root}}(Admin){{end}} {{.PWD}}",
|
|
"transient_prompt": {
|
|
"foreground": "#B48EAD",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}#BF616A{{ end }}"],
|
|
"template": "\u276f "
|
|
},
|
|
"version": 2
|
|
}
|