mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
301 lines
9.3 KiB
JSON
301 lines
9.3 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#0077c2",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\u256d\u2500\ue0b6",
|
|
"properties": {
|
|
"template": "\uf120 {{ .Name }} "
|
|
},
|
|
"style": "diamond",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"background": "#ef5350",
|
|
"foreground": "#FFFB38",
|
|
"properties": {
|
|
"template": "<parentBackground>\ue0b0</> \uf292 "
|
|
},
|
|
"style": "diamond",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#FF9248",
|
|
"foreground": "#2d3436",
|
|
"powerline_symbol": "\ue0b0",
|
|
"properties": {
|
|
"folder_icon": " \uf07b ",
|
|
"home_icon": "\uf7dd",
|
|
"style": "folder",
|
|
"template": " \uf07b\uf553{{ .Path }} "
|
|
},
|
|
"style": "powerline",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#FFFB38",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#C792EA{{ end }}",
|
|
"{{ if gt .Behind 0 }}#C792EA{{ end }}"
|
|
],
|
|
"foreground": "#011627",
|
|
"powerline_symbol": "\ue0b0",
|
|
"properties": {
|
|
"branch_icon": "\ue725 ",
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} "
|
|
},
|
|
"style": "powerline",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#83769c",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"style": "roundrock",
|
|
"template": " \ufa1e{{ .FormattedMs }}\u2800",
|
|
"threshold": 0
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "executiontime"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"background": "#303030",
|
|
"foreground": "#3C873A",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"fetch_package_manager": true,
|
|
"npm_icon": " <#cc3a3a>\ue5fa</> ",
|
|
"template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
|
|
"yarn_icon": " <#348cba>\uf61a</>"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "node"
|
|
},
|
|
{
|
|
"background": "#306998",
|
|
"foreground": "#FFE873",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "python"
|
|
},
|
|
{
|
|
"background": "#0e8ac8",
|
|
"foreground": "#ec2729",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "java"
|
|
},
|
|
{
|
|
"background": "#0e0e0e",
|
|
"foreground": "#0d6da8",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "dotnet"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#06aad5",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "go"
|
|
},
|
|
{
|
|
"background": "#f3f0ec",
|
|
"foreground": "#925837",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "rust"
|
|
},
|
|
{
|
|
"background": "#e1e8e9",
|
|
"foreground": "#055b9c",
|
|
"leading_diamond": " \ue0b6",
|
|
"properties": {
|
|
"template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "dart"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#ce092f",
|
|
"leading_diamond": " \ue0b6",
|
|
"properties": {
|
|
"template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "angular"
|
|
},
|
|
{
|
|
"background": "#945bb3",
|
|
"foreground": "#359a25",
|
|
"leading_diamond": " \ue0b6",
|
|
"properties": {
|
|
"template": "<#ca3c34>\ue624</> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "julia"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#9c1006",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "ruby"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#5398c2",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\uf104<#f5bf45>\uf0e7</>\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "azfunc"
|
|
},
|
|
{
|
|
"background": "#565656",
|
|
"foreground": "#faa029",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4 ",
|
|
"type": "aws"
|
|
},
|
|
{
|
|
"background": "#316ce4",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"template": "\ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "kubectl"
|
|
},
|
|
{
|
|
"background": "#b2bec3",
|
|
"foreground": "#222222",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"linux": "\ue27f",
|
|
"macos": "\ue27f",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}<#262626> \ue0b2</>",
|
|
"windows": "\ue27f"
|
|
},
|
|
"style": "diamond",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"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": "\uf58e ",
|
|
"charging_icon": "\uf1e6 ",
|
|
"discharging_icon": "\ue234 ",
|
|
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 <#262626>\ue0b2</>"
|
|
},
|
|
"style": "diamond",
|
|
"type": "battery"
|
|
},
|
|
{
|
|
"background": "#40c4ff",
|
|
"foreground": "#ffffff",
|
|
"invert_powerline": true,
|
|
"leading_diamond": "\ue0b2",
|
|
"properties": {
|
|
"template": " \uf5ef {{ .CurrentDate | date .Format }} ",
|
|
"time_format": "_2,15:04"
|
|
},
|
|
"style": "diamond",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "time"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#21c7c7",
|
|
"properties": {
|
|
"template": "\u2570\u2500"
|
|
},
|
|
"style": "plain",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"foreground": "#e0f8ff",
|
|
"foreground_templates": [
|
|
"{{ if gt .Code 0 }}#ef5350{{ end }}"
|
|
],
|
|
"properties": {
|
|
"always_enabled": true,
|
|
"template": "\ue285\ufb00 "
|
|
},
|
|
"style": "plain",
|
|
"type": "exit"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"osc99": true,
|
|
"version": 1
|
|
}
|