185 lines
5.9 KiB
JSON
185 lines
5.9 KiB
JSON
{
|
||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||
"palette": {
|
||
"base": "#1E1E2E",
|
||
"blue": "#89B4FA",
|
||
"crust": "#11111B",
|
||
"false": "p:red",
|
||
"flamingo": "#F2CDCD",
|
||
"green": "#A6E3A1",
|
||
"lavender": "#B4BEFE",
|
||
"mantle": "#181825",
|
||
"maroon": "#EBA0AC",
|
||
"mauve": "#CBA6F7",
|
||
"overlay0": "#6C7086",
|
||
"overlay1": "#7F849C",
|
||
"overlay2": "#9399B2",
|
||
"peach": "#FAB387",
|
||
"pink": "#F5C2E7",
|
||
"red": "#F38BA8",
|
||
"rosewater": "#F5E0DC",
|
||
"sapphire": "#74C7EC",
|
||
"sky": "#89DCEB",
|
||
"subtext0": "#A6ADC8",
|
||
"subtext1": "#BAC2DE",
|
||
"surface0": "#313244",
|
||
"surface1": "#45475A",
|
||
"surface2": "#585B70",
|
||
"teal": "#94E2D5",
|
||
"text": "#CDD6F4",
|
||
"true": "p:green",
|
||
"yellow": "#F9E2AF"
|
||
},
|
||
"transient_prompt": {
|
||
"template": "{{ .PWD }} {{ now | date \"15:04:05\" }} {{ if gt .Code 0 }}<p:false>❯</>{{ else }}<p:true>❯</>{{ end }} ",
|
||
"foreground": "p:text"
|
||
},
|
||
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
|
||
"blocks": [
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"style": "diamond",
|
||
"leading_diamond": "\ue0b2",
|
||
"template": " {{.Icon}} ",
|
||
"foreground": "p:text",
|
||
"background": "p:surface0",
|
||
"type": "os"
|
||
},
|
||
{
|
||
"properties": {
|
||
"home_icon": "~",
|
||
"style": "full"
|
||
},
|
||
"style": "powerline",
|
||
"template": " \uf07c {{ .Path }} ",
|
||
"foreground": "p:base",
|
||
"powerline_symbol": "\ue0b0",
|
||
"background": "p:lavender",
|
||
"type": "path"
|
||
},
|
||
{
|
||
"properties": {
|
||
"branch_icon": "\uf126 ",
|
||
"fetch_stash_count": true,
|
||
"fetch_status": true,
|
||
"fetch_upstream_icon": true
|
||
},
|
||
"style": "powerline",
|
||
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||
"foreground": "#000000",
|
||
"powerline_symbol": "\ue0b0",
|
||
"background": "#4e9a06",
|
||
"type": "git",
|
||
"background_templates": [
|
||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}",
|
||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
|
||
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
|
||
"{{ if gt .Behind 0 }}#4e9a06{{ end }}"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "right",
|
||
"segments": [
|
||
{
|
||
"properties": {
|
||
"fetch_version": true
|
||
},
|
||
"style": "powerline",
|
||
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \ue718 ",
|
||
"foreground": "#ffffff",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "#689f63",
|
||
"type": "node",
|
||
"invert_powerline": true
|
||
},
|
||
{
|
||
"properties": {
|
||
"fetch_version": true
|
||
},
|
||
"style": "powerline",
|
||
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ",
|
||
"foreground": "#111111",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "#00acd7",
|
||
"type": "go",
|
||
"invert_powerline": true
|
||
},
|
||
{
|
||
"properties": {
|
||
"fetch_version": true
|
||
},
|
||
"style": "powerline",
|
||
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue624 ",
|
||
"foreground": "#111111",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "#4063D8",
|
||
"type": "julia",
|
||
"invert_powerline": true
|
||
},
|
||
{
|
||
"properties": {
|
||
"display_mode": "files",
|
||
"fetch_virtual_env": false
|
||
},
|
||
"style": "powerline",
|
||
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue235 ",
|
||
"foreground": "#111111",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "#FFDE57",
|
||
"type": "python",
|
||
"invert_powerline": true
|
||
},
|
||
{
|
||
"style": "accordion",
|
||
"template": " \uf0ad ",
|
||
"foreground": "p:text",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "p:yellow",
|
||
"type": "root",
|
||
"invert_powerline": true
|
||
},
|
||
{
|
||
"properties": {
|
||
"always_enabled": true
|
||
},
|
||
"style": "diamond",
|
||
"trailing_diamond": "\ue0b0",
|
||
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
|
||
"foreground": "p:text",
|
||
"powerline_symbol": "\ue0b2",
|
||
"background": "p:surface0",
|
||
"type": "status",
|
||
"foreground_templates": [
|
||
"{{ if gt .Code 0 }}p:surface0{{ end }}"
|
||
],
|
||
"background_templates": [
|
||
"{{ if gt .Code 0 }}p:red{{ end }}"
|
||
],
|
||
"invert_powerline": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"type": "prompt",
|
||
"alignment": "left",
|
||
"segments": [
|
||
{
|
||
"style": "plain",
|
||
"template": "❯",
|
||
"foreground": "p:text",
|
||
"type": "text"
|
||
}
|
||
],
|
||
"newline": true
|
||
}
|
||
],
|
||
"version": 3,
|
||
"final_space": true
|
||
}
|
||
|