mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
106 lines
3.4 KiB
JSON
106 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"final_space": true,
|
|
"osc99": true,
|
|
"console_title": true,
|
|
"console_title_style": "template",
|
|
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.Folder | replace \"~\" \"🏠\"}} @ {{.Host}}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#0C212F",
|
|
"foreground": "#FFFFFF",
|
|
"leading_diamond": "\uE0B6",
|
|
"trailing_diamond": "\uE0B0",
|
|
"properties": {
|
|
"wsl": "",
|
|
"wsl_separator": ""
|
|
},
|
|
"style": "diamond",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#DE2121",
|
|
"foreground": "#FFFFFF",
|
|
"leading_diamond": "<transparent,#DE2121>\uE0B0</>",
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B0",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#26BDBB",
|
|
"foreground": "#0C212F",
|
|
"leading_diamond": "<transparent,#26BDBB>\uE0B0</>",
|
|
"properties": {
|
|
"folder_icon": "\uF6D7",
|
|
"folder_separator_icon": "<transparent> \uE0B1 </>",
|
|
"home_icon": "\uF7DB",
|
|
"style": "agnoster_short"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B0",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#280C2E",
|
|
"foreground": "#FFFFFF",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#7621DE{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#7621DE{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#7621DE{{ end }}",
|
|
"{{ if gt .Behind 0 }}#7621DE{{ end }}"
|
|
],
|
|
"powerline_symbol": "\uE0B0",
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
|
|
},
|
|
"style": "powerline",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#0C212F",
|
|
"foreground": "#FFFFFF",
|
|
"leading_diamond": "<transparent,#0C212F>\uE0B0</>",
|
|
"properties": {
|
|
"time_format": "15:04"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B0",
|
|
"type": "time"
|
|
},
|
|
{
|
|
"background": "#26BDBB",
|
|
"foreground": "#0C212F",
|
|
"leading_diamond": "<transparent,#26BDBB>\uE0B0</>",
|
|
"properties": {
|
|
"postfix": "s ",
|
|
"style": "dallas",
|
|
"threshold": 0
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B0",
|
|
"type": "executiontime"
|
|
},
|
|
{
|
|
"background": "#910000",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "<transparent,background>\uE0B0</>",
|
|
"properties": {
|
|
"template": "{{ .Text }}",
|
|
"prefix": "<transparent> \uF12A</> "
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B0",
|
|
"type": "exit"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|