mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
161 lines
5 KiB
JSON
161 lines
5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#000000",
|
|
"foreground": "#dd1e1e",
|
|
"style": "plain",
|
|
"template": " \u26a1",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "transparent",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"alpine": "\uf300",
|
|
"arch": "\uf303",
|
|
"centos": "\uf304",
|
|
"debian": "\uf306",
|
|
"elementary": "\uf309",
|
|
"fedora": "\uf30a",
|
|
"gentoo": "\uf30d",
|
|
"linux": "\ue712",
|
|
"macos": "\ue711",
|
|
"manjaro": "\uf312",
|
|
"mint": "\uf30f",
|
|
"opensuse": "\uf314",
|
|
"raspbian": "\uf315",
|
|
"ubuntu": "\uf31c",
|
|
"windows": "\ue62a",
|
|
"wsl": "\ue712"
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#272727",
|
|
"foreground": "#3EC669",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"style": "folder"
|
|
},
|
|
"style": "diamond",
|
|
"template": "\ue5ff {{ .Path }}",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#272727",
|
|
"foreground": "#00ff0d",
|
|
"properties": {
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true
|
|
},
|
|
"style": "plain",
|
|
"template": "<#000000>\ue0b1 </>{{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#306998",
|
|
"foreground": "#FFE873",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "python"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#06aad5",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "go"
|
|
},
|
|
{
|
|
"background": "#565656",
|
|
"foreground": "#faa029",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "aws"
|
|
},
|
|
{
|
|
"type": "terraform",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#000000",
|
|
"background": "#ebcc34",
|
|
"template": "{{.WorkspaceName}}"
|
|
},
|
|
{
|
|
"background": "#316ce4",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\uf308 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "kubectl"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"style": "roundrock",
|
|
"always_enabled": true
|
|
},
|
|
"style": "diamond",
|
|
"template": "{{ .FormattedMs }} ",
|
|
"type": "executiontime"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#3c3c3c",
|
|
"style": "plain",
|
|
"template": " {{ round .PhysicalPercentUsed .Precision }}% ",
|
|
"type": "sysinfo"
|
|
},
|
|
{
|
|
"background": "#f36943",
|
|
"background_templates": [
|
|
"{{if eq \"Charging\" .State.String}}#b8e994{{end}}",
|
|
"{{if eq \"Discharging\" .State.String}}#fff34e{{end}}",
|
|
"{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
|
|
],
|
|
"foreground": "#262626",
|
|
"invert_powerline": true,
|
|
"leading_diamond": "\ue0b2",
|
|
"properties": {
|
|
"charged_icon": "\uf240 ",
|
|
"charging_icon": "\uf1e6 ",
|
|
"discharging_icon": "\ue234 "
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 <#262626>\ue0b2</>",
|
|
"type": "battery"
|
|
},
|
|
{
|
|
"background": "#000000",
|
|
"foreground": "lightGreen",
|
|
"style": "plain",
|
|
"template": "{{ .CurrentDate | date .Format }}",
|
|
"type": "time"
|
|
}
|
|
],
|
|
"type": "rprompt"
|
|
}
|
|
],
|
|
"pwd": "osc99",
|
|
"version": 2
|
|
}
|