79 lines
2 KiB
JSON
79 lines
2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "p:os",
|
|
"style": "plain",
|
|
"template": "{{.Icon}}",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"foreground": "cyan",
|
|
"style": "plain",
|
|
"template": "{{if .Root}} <yellow>\ue701 {{ .UserName }} as Administrator</>{{end}}",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"properties": {
|
|
"enable_hyperlink": true,
|
|
"home_icon": "\uf015 ~",
|
|
"style": "short"
|
|
},
|
|
"foreground": "lightBlue",
|
|
"type": "path",
|
|
"style": "plain"
|
|
},
|
|
{
|
|
"properties": {
|
|
"display_stash_count": true,
|
|
"branch_icon": "\ue725 ",
|
|
"prefix": "<white>\ue708</>"
|
|
},
|
|
"foreground": "lightCyan",
|
|
"type": "git",
|
|
"style": "plain"
|
|
},
|
|
{
|
|
"properties": {
|
|
"postfix": "",
|
|
"prefix": "",
|
|
"text": "\u200b"
|
|
},
|
|
"foreground": "white",
|
|
"type": "text",
|
|
"style": "plain"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "cyan",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "\u276f ",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"transient_prompt": {
|
|
"foreground": "cyan",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
|
"template": "\u276f ",
|
|
"newline": true
|
|
},
|
|
"version": 3,
|
|
"final_space": false
|
|
}
|