112 lines
3.0 KiB
JSON
112 lines
3.0 KiB
JSON
{
|
||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||
"transient_prompt": {
|
||
"template": "{{ .Shell }}> ",
|
||
"foreground": "#ffffff",
|
||
"background": "transparent"
|
||
},
|
||
"blocks": [
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"options": {
|
||
"time_format": "15:04"
|
||
},
|
||
"template": "\uf017 {{ .CurrentDate | date .Format }}",
|
||
"foreground": "#E5C07B",
|
||
"type": "time",
|
||
"style": "plain"
|
||
},
|
||
{
|
||
"options": {
|
||
"fetch_status": true,
|
||
"fetch_upstream_icon": true
|
||
},
|
||
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||
"foreground": "#F3C267",
|
||
"type": "git",
|
||
"style": "plain",
|
||
"foreground_templates": [
|
||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
|
||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
|
||
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
|
||
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
|
||
]
|
||
}
|
||
],
|
||
"newline": true
|
||
},
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "right",
|
||
"segments": [
|
||
{
|
||
"options": {},
|
||
"template": " x{{ reason .Code }}",
|
||
"foreground": "#b8ff75",
|
||
"type": "status",
|
||
"style": "plain",
|
||
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"]
|
||
},
|
||
{
|
||
"options": {
|
||
"always_enabled": true,
|
||
|
||
"style": "roundrock"
|
||
},
|
||
"template": " {{ .FormattedMs }} ",
|
||
"foreground": "#E5C07B",
|
||
"type": "executiontime",
|
||
"style": "diamond",
|
||
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"options": {
|
||
"style": "full"
|
||
},
|
||
"template": "\ue5ff {{ .Path }}",
|
||
"foreground": "#61AFEF",
|
||
"type": "path",
|
||
"style": "plain"
|
||
}
|
||
],
|
||
"newline": true
|
||
},
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"options": {
|
||
"cache_duration": "none"
|
||
},
|
||
"template": "!",
|
||
"foreground": "#E06C75",
|
||
"type": "root",
|
||
"style": "plain"
|
||
},
|
||
{
|
||
"options": {
|
||
"cache_duration": "none"
|
||
},
|
||
"template": "❯",
|
||
"foreground": "#E06C75",
|
||
"type": "text",
|
||
"style": "plain"
|
||
}
|
||
],
|
||
"newline": true
|
||
}
|
||
],
|
||
"version": 3,
|
||
"final_space": true
|
||
}
|