mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
119 lines
3.4 KiB
JSON
119 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#26C6DA",
|
|
"style": "plain",
|
|
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"foreground": "#26C6DA",
|
|
"style": "diamond",
|
|
"template": "{{ .UserName }}@{{ .HostName }} ",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"foreground": "#0fc469",
|
|
"style": "powerline",
|
|
"template": "\u279c \ue235({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }}) ",
|
|
"type": "python"
|
|
},
|
|
{
|
|
"foreground": "#FFE700",
|
|
"foreground_templates": [
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
|
|
"{{ if gt .Ahead 0 }}#16c60c{{ end }}",
|
|
"{{ if gt .Behind 0 }}#f450de{{ end }}"
|
|
],
|
|
"properties": {
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"style": "plain",
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} \uf692 {{ .StashCount }}{{ end }} ",
|
|
"type": "git"
|
|
}
|
|
],
|
|
"type": "prompt",
|
|
"vertical_offset": 1
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"background": "#6CA35E",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": "\ue718 {{ .Full }} ",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "node"
|
|
},
|
|
{
|
|
"background": "#4c1f5e",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": " \ue0b6",
|
|
"style": "diamond",
|
|
"template": "\ue738 {{ .Full }} ",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "java"
|
|
},
|
|
{
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if gt .Code 0 }}<#ff0000>\uf00d \ue23a</>{{ else }}<#23d18b>\uf42e \ue23a</>{{ end }} ",
|
|
"type": "exit"
|
|
},
|
|
{
|
|
"foreground": "#bab02a",
|
|
"properties": {
|
|
"threshold": 10
|
|
},
|
|
"style": "plain",
|
|
"template": "took \uf252 {{ .FormattedMs }} ",
|
|
"type": "executiontime"
|
|
},
|
|
{
|
|
"foreground": "#00C5C7",
|
|
"properties": {
|
|
"time_format": "15:04:05"
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
|
|
"type": "time"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#77E4F7",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": "{{ .Path }} ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"foreground": "#43D426",
|
|
"style": "plain",
|
|
"template": "\u276f ",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 2
|
|
}
|