68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"final_space": true,
|
|
"version": 2,
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"template": " {{ if gt .Code 0 }}<red>{{ else }}<magenta>{{ end }}\u03bb</> "
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "white",
|
|
"template": " {{ .Path }} ",
|
|
"properties": {
|
|
"style": "unique"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "cyan",
|
|
"template": " {{ url .HEAD .UpstreamURL }} {{ if or (.Working.Changed) (.Staging.Changed) }}<yellow>{{ else }}<green>{{ end }}\u25b2</> ",
|
|
"properties": {
|
|
"fetch_status": true,
|
|
"branch_icon": "",
|
|
"branch_identical_icon": "",
|
|
"branch_ahead_icon": "",
|
|
"branch_behind_icon": "",
|
|
"branch_gone_icon": ""
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "rprompt",
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"type": "executiontime",
|
|
"style": "plain",
|
|
"foreground": "yellow",
|
|
"template": " {{ .FormattedMs }} ",
|
|
"properties": {
|
|
"style": "round",
|
|
"threshold": 3000
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "red",
|
|
"template": " {{ .Code }} "
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "plain",
|
|
"template": " {{ .CurrentDate | date .Format }}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|