mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
106 lines
2.7 KiB
JSON
106 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": "plain",
|
|
"foreground": "#3A86FF",
|
|
"properties": {
|
|
"prefix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#f1184c",
|
|
"background": "#242424",
|
|
"properties": {
|
|
"postfix": "",
|
|
"template": "{{ .UserName }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "root",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#f1184c",
|
|
"background": "#242424",
|
|
"properties": {
|
|
"prefix": "- root ",
|
|
"postfix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#FFBB00",
|
|
"background": "#242424",
|
|
"properties": {
|
|
"time_format": "2006-01-02 15:04:05",
|
|
"prefix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#33DD2D",
|
|
"background": "#242424",
|
|
"properties": {
|
|
"prefix": "\uE5FF ",
|
|
"style": "full",
|
|
"folder_separator_icon": "/"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#3A86FF",
|
|
"background": "#242424",
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_upstream_icon": true,
|
|
"prefix": "",
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#242424",
|
|
"background": "#33DD2D",
|
|
"background_templates": ["{{ if gt .Code 0 }}#f1184c{{ end }}"],
|
|
"properties": {
|
|
"always_enabled": true,
|
|
"template": "\ufc8d"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#f1184c",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "\u279C"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|