mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 23:14:05 -08:00
105 lines
2.8 KiB
JSON
105 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"background": "#0000ff",
|
|
"foreground": "#000000",
|
|
"powerline_symbol": "\ue0b4",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "powerline",
|
|
"template": " \uf0e7 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "#0000ff",
|
|
"foreground": "#ffffff",
|
|
"powerline_symbol": "\ue0b4",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "powerline",
|
|
"template": " {{ .Path }} ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#D4E157",
|
|
"foreground": "#000000",
|
|
"powerline_symbol": "\ue0b4",
|
|
"style": "powerline",
|
|
"template": " {{ .HEAD }} ",
|
|
"type": "git"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"background": "#D4E157",
|
|
"foreground": "#000000",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} <transparent>\ue0b6</>",
|
|
"type": "python"
|
|
},
|
|
{
|
|
"background": "#7FD5EA",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"style": "diamond",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} <transparent>\ue0b6</>",
|
|
"type": "go"
|
|
},
|
|
{
|
|
"background": "#ffffff",
|
|
"foreground": "#000000",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"time_format": "15:04:05"
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ .CurrentDate | date .Format }} ",
|
|
"trailing_diamond": "\ue0b4",
|
|
"type": "time"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"foreground": "#D4E157",
|
|
"foreground_templates": [
|
|
"{{ if gt .Code 0 }}#FF5252{{ end }}"
|
|
],
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "\u276f ",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"version": 3
|
|
}
|