86 lines
2.8 KiB
JSON
86 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#0077c2",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\uf120 {{ .Name }} ",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"background": "#ef5350",
|
|
"foreground": "#FFFB38",
|
|
"style": "diamond",
|
|
"template": "<parentBackground>\ue0b0</> \uf292 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#FF9248",
|
|
"foreground": "#2d3436",
|
|
"powerline_symbol": "\ue0b0",
|
|
"style": "powerline",
|
|
"template": " \uf07b {{ .Path }} ",
|
|
"type": "path",
|
|
"properties": {
|
|
"home_icon": "~",
|
|
"folder_separator_icon": " \ue0b1 ",
|
|
"style": "agnoster_short",
|
|
"max_depth": 3
|
|
}
|
|
},
|
|
{
|
|
"background": "#FFFB38",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#C792EA{{ end }}",
|
|
"{{ if gt .Behind 0 }}#C792EA{{ end }}"
|
|
],
|
|
"foreground": "#011627",
|
|
"powerline_symbol": "\ue0b0",
|
|
"style": "powerline",
|
|
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
|
"type": "git",
|
|
"properties": {
|
|
"branch_icon": "\ue725 ",
|
|
"branch_template": "{{ trunc 30 .Branch }}",
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"fetch_stash_count": true
|
|
}
|
|
},
|
|
{
|
|
"background": "#83769c",
|
|
"foreground": "#ffffff",
|
|
"style": "diamond",
|
|
"template": " \ueba2\u200b{{ .FormattedMs }}\u2800",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "executiontime",
|
|
"properties": {
|
|
"style": "roundrock",
|
|
"threshold": 0
|
|
}
|
|
},
|
|
{
|
|
"foreground": "#e0f8ff",
|
|
"foreground_templates": [
|
|
"{{ if gt .Code 0 }}#ef5350{{ end }}"
|
|
],
|
|
"style": "plain",
|
|
"template": " \ue285\ueab6 ",
|
|
"type": "status",
|
|
"properties": {
|
|
"always_enabled": true
|
|
}
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 3
|
|
} |