mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
107 lines
2.7 KiB
JSON
107 lines
2.7 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "os",
|
|
"style": "diamond",
|
|
"foreground": "#ffffff",
|
|
"background": "#3A86FF",
|
|
"leading_diamond": "\uE0B6"
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "powerline",
|
|
"foreground": "#ffffff",
|
|
"background": "#3A86FF"
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#ff479c",
|
|
"properties": {
|
|
"prefix": " \uE5FF ",
|
|
"style": "full"
|
|
}
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#193549",
|
|
"background": "#4caf50",
|
|
"properties": {
|
|
"time_format": "2006-01-02 15:04:05",
|
|
"prefix": " "
|
|
}
|
|
},
|
|
|
|
{
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#193549",
|
|
"background": "#fffb38",
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_upstream_icon": true,
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#6CA35E",
|
|
"properties": {
|
|
"prefix": " \uE718 "
|
|
}
|
|
},
|
|
{
|
|
"type": "root",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#193549",
|
|
"background": "#ffff66"
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "diamond",
|
|
"foreground": "#ffffff",
|
|
"background": "#2e9599",
|
|
"background_templates": ["{{ if gt .Code 0 }}#f1184c{{ end }}"],
|
|
"leading_diamond": "<transparent,background>\uE0B0</>",
|
|
"trailing_diamond": "\uE0B4",
|
|
"properties": {
|
|
"template": "\uF7d4",
|
|
"always_enabled": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#f1184c",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "\uF7C6"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"final_space": true
|
|
}
|