2021-04-08 14:13:12 -07:00
|
|
|
{
|
|
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
|
|
"blocks": [
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "prompt",
|
|
|
|
"alignment": "left",
|
|
|
|
"segments": [
|
2021-04-08 14:13:12 -07:00
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "os",
|
|
|
|
"style": "diamond",
|
|
|
|
"foreground": "#26C6DA",
|
|
|
|
"background": "#546E7A",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"postfix": " \uE0B1",
|
|
|
|
"macos": "mac"
|
2021-05-04 00:23:40 -07:00
|
|
|
},
|
|
|
|
"leading_diamond": "\uE0c5",
|
|
|
|
"trailing_diamond": "\uE0B0"
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "session",
|
|
|
|
"style": "powerline",
|
|
|
|
"foreground": "#26C6DA",
|
|
|
|
"background": "#546E7A",
|
|
|
|
"powerline_symbol": "\uE0B0"
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
2021-05-04 00:23:40 -07:00
|
|
|
{
|
|
|
|
"type": "battery",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#193549",
|
|
|
|
"background": "#a2beef",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"battery_icon": "\f583",
|
|
|
|
"color_background": true,
|
|
|
|
"charged_color": "#0476d0",
|
|
|
|
"charging_color": "#00D100",
|
|
|
|
"discharging_color": "#FFCD58",
|
|
|
|
"postfix": "\uF295 \uf583 "
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "path",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#193549",
|
|
|
|
"background": "#14c2dd",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"prefix": " \uE5FF ",
|
|
|
|
"style": "folder"
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "git",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#193549",
|
|
|
|
"background": "#a2c4e0",
|
|
|
|
"properties": {
|
2021-11-07 08:42:56 -08:00
|
|
|
"fetch_stash_count": true,
|
2021-11-08 13:56:40 -08:00
|
|
|
"fetch_upstream_icon": true,
|
2021-11-09 08:13:47 -08:00
|
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "node",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#ffffff",
|
|
|
|
"background": "#6CA35E",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"prefix": " \uE718 "
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "root",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#193549",
|
|
|
|
"background": "#ffff66"
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "kubectl",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "\uE0B0",
|
|
|
|
"foreground": "#ffffff",
|
|
|
|
"background": "#0077c2",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"prefix": " \uFD31 ",
|
|
|
|
"template": "{{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}}"
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "exit",
|
|
|
|
"style": "diamond",
|
|
|
|
"foreground": "#ffffff",
|
|
|
|
"background": "#007800",
|
2021-11-14 04:39:00 -08:00
|
|
|
"background_templates": ["{{ if gt .Code 0 }}#f1184c{{ end }}"],
|
|
|
|
"leading_diamond": "<transparent,background>\uE0B0</>",
|
2021-05-04 00:23:40 -07:00
|
|
|
"trailing_diamond": "\uE0b0",
|
|
|
|
"properties": {
|
2021-11-14 04:39:00 -08:00
|
|
|
"template": "\ufc8d",
|
|
|
|
"always_enabled": true
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "prompt",
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
2021-04-08 14:13:12 -07:00
|
|
|
{
|
2021-05-04 00:23:40 -07:00
|
|
|
"type": "text",
|
|
|
|
"style": "plain",
|
|
|
|
"foreground": "#007ACC",
|
|
|
|
"properties": {
|
2021-04-08 14:13:12 -07:00
|
|
|
"prefix": "",
|
|
|
|
"text": "\u279C"
|
2021-05-04 00:23:40 -07:00
|
|
|
}
|
2021-04-08 14:13:12 -07:00
|
|
|
}
|
2021-05-04 00:23:40 -07:00
|
|
|
]
|
2021-04-08 14:13:12 -07:00
|
|
|
}
|
|
|
|
],
|
2021-05-04 00:23:40 -07:00
|
|
|
"final_space": true
|
2021-04-08 14:13:12 -07:00
|
|
|
}
|