oh-my-posh/themes/peru.omp.json

131 lines
3.7 KiB
JSON
Raw Normal View History

2022-02-04 12:28:23 -08:00
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#26C6DA",
"properties": {
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} "
},
"style": "plain",
"type": "os"
},
{
"foreground": "#26C6DA",
"properties": {
"template": "{{ .UserName }}@{{ .HostName }} "
},
"style": "diamond",
"type": "session"
},
{
"foreground": "#0fc469",
"properties": {
"template": "\u279c \ue235({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }}) "
},
"style": "powerline",
"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,
"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 }} "
},
"style": "plain",
"type": "git"
}
],
"type": "prompt",
"vertical_offset": 1
},
{
"alignment": "right",
"segments": [
{
"background": "#6CA35E",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
"properties": {
"template": "\ue718 {{ .Full }} "
},
"style": "diamond",
"trailing_diamond": "\ue0b4",
"type": "node"
},
{
"background": "#4c1f5e",
"foreground": "#ffffff",
"leading_diamond": " \ue0b6",
"properties": {
"template": "\ue738 {{ .Full }} "
},
"style": "diamond",
"trailing_diamond": "\ue0b4",
"type": "java"
},
{
"properties": {
"always_enabled": true,
"template": " {{ if gt .Code 0 }}<#ff0000>\uf00d \ue23a</>{{ else }}<#23d18b>\uf42e \ue23a</>{{ end }} "
},
"style": "plain",
"type": "exit"
},
{
"foreground": "#bab02a",
"properties": {
"template": "took \uf252 {{ .FormattedMs }} ",
"threshold": 10
},
"style": "plain",
"type": "executiontime"
},
{
"foreground": "#00C5C7",
"properties": {
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"time_format": "15:04:05"
},
"style": "plain",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#77E4F7",
"properties": {
"style": "full",
"template": "{{ .Path }} "
},
"style": "plain",
"type": "path"
},
{
"foreground": "#43D426",
"properties": {
"template": "\u276f "
},
"style": "plain",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 1
}