mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 11:34:04 -08:00
107 lines
3.1 KiB
JSON
107 lines
3.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"final_space": true,
|
|
"console_title": true,
|
|
"console_title_style": "template",
|
|
"console_title_template": "{{.User}}@{{.Host}} in {{ .Path }}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"vertical_offset": 1,
|
|
"segments": [
|
|
{
|
|
"type": "os",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#fff",
|
|
"background": "#003543",
|
|
"properties": {
|
|
"prefix": " ",
|
|
"windows": "\uE62A ",
|
|
"postfix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#003544",
|
|
"background": "#0087D8",
|
|
"properties": {
|
|
"prefix": " \uE5FF ",
|
|
"style": "full",
|
|
"folder_separator_icon": "/"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#193549",
|
|
"background": "#d2ff5e",
|
|
"background_templates": [
|
|
"{{ if or (.Repo.Working.Changed) (.Repo.Staging.Changed) }}#ff9248{{ end }}",
|
|
"{{ if and (.Repo.Ahead gt 0) (.Repo.Behind gt 0) }}#f26d50{{ end }}",
|
|
"{{ if .Repo.Ahead gt 0 }}#89d1dc{{ end }}",
|
|
"{{ if .Repo.Behind gt 0 }}#f17c37{{ end }}"
|
|
],
|
|
"properties": {
|
|
"fetch_status": true,
|
|
"fetch_stash_count": true,
|
|
"display_upstream_icon": true,
|
|
"template": "{{ .Repo.HEAD }}{{ .Repo.BranchStatus }}{{ if .Repo.Working.Changed }} \uF044 {{ .Repo.Working.String }}{{ end }}{{ if and (.Repo.Working.Changed) (.Repo.Staging.Changed) }} |{{ end }}{{ if .Repo.Staging.Changed }} \uF046 {{ .Repo.Staging.String }}{{ end }}{{ if gt .Repo.StashCount 0 }} \uF692 {{ .Repo.StashCount }}{{ end }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#fff",
|
|
"background": "#003543",
|
|
"properties": {
|
|
"prefix": "<#fff> \uf64f </>"
|
|
}
|
|
},
|
|
{
|
|
"type": "executiontime",
|
|
"style": "diamond",
|
|
"foreground": "#ffffff",
|
|
"background": "#83769c",
|
|
"leading_diamond": "",
|
|
"trailing_diamond": "",
|
|
"properties": {
|
|
"always_enabled": true,
|
|
"prefix": " \ufa1e ",
|
|
"postfix": "\u2800"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "root",
|
|
"style": "plain",
|
|
"foreground": "#fff",
|
|
"properties": {
|
|
"root_icon": "⚡"
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#f1184c",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "🦄"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|