2022-04-04 03:16:49 -07:00
|
|
|
{
|
|
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
|
|
"blocks": [
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"leading_diamond": "\u256d\u2500\ue0b2",
|
|
|
|
"style": "diamond",
|
|
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1",
|
|
|
|
"type": "os"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"properties": {
|
|
|
|
"always_enabled": true,
|
|
|
|
"style": "austin",
|
|
|
|
"threshold": 500
|
|
|
|
},
|
|
|
|
"style": "powerline",
|
|
|
|
"template": " {{ .FormattedMs }} \ue0b1",
|
|
|
|
"type": "executiontime"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#26C6DA",
|
|
|
|
"style": "plain",
|
|
|
|
"template": " \uf0e7 ",
|
|
|
|
"type": "root"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"properties": {
|
|
|
|
"style": "full",
|
|
|
|
"trailing_diamond": "\ue0c6"
|
|
|
|
},
|
|
|
|
"style": "diamond",
|
|
|
|
"template": " {{ .Path }} ",
|
|
|
|
"type": "path"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#D4E157",
|
|
|
|
"style": "plain",
|
2022-09-22 23:05:06 -07:00
|
|
|
"type": "git"
|
2022-04-04 03:16:49 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#26C6DA",
|
|
|
|
"foreground_templates": [
|
|
|
|
"{{ if eq \"Full\" .State.String }}#292929{{ end }}",
|
|
|
|
"{{ if eq \"Charging\" .State.String }}#40c4ff{{ end }}",
|
|
|
|
"{{ if eq \"Discharging\" .State.String }}#fb7e14{{ end }}"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"charged_icon": "\uf240 ",
|
2023-05-08 01:37:48 -07:00
|
|
|
"charging_icon": "\udb80\udc84 ",
|
|
|
|
"discharging_icon": "\udb80\udc84 ",
|
2022-04-04 03:16:49 -07:00
|
|
|
"text": "\ue0b0"
|
|
|
|
},
|
|
|
|
"style": "powerline",
|
|
|
|
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \ue0b1",
|
|
|
|
"type": "battery"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"background_templates": [
|
|
|
|
"{{ if gt .Code 0 }}#292929{{ end }}"
|
|
|
|
],
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"properties": {
|
|
|
|
"always_enabled": true,
|
|
|
|
"display_exit_code": true
|
|
|
|
},
|
|
|
|
"style": "diamond",
|
|
|
|
"template": " {{ if gt .Code 0 }}\uf00d {{ .Meaning }}{{ else }}\uf00c{{ end }} ",
|
|
|
|
"trailing_diamond": "\ue0b4",
|
|
|
|
"type": "exit"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "right",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"leading_diamond": "\ue0b6",
|
|
|
|
"style": "diamond",
|
2023-05-08 01:37:48 -07:00
|
|
|
"template": " {{ if .SSHSession }}\udb80\udf18 {{ end }}{{ .UserName }}@{{ .HostName }} <#fb7e14>\ue0b3</> ",
|
2022-04-04 03:16:49 -07:00
|
|
|
"type": "session"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"properties": {
|
2022-09-22 23:15:57 -07:00
|
|
|
"time_format": "15:04:05, _2"
|
2022-04-04 03:16:49 -07:00
|
|
|
},
|
|
|
|
"style": "diamond",
|
2023-05-08 01:37:48 -07:00
|
|
|
"template": "{{ .CurrentDate | date .Format }} \udb80\udcf0 ",
|
2022-04-04 03:16:49 -07:00
|
|
|
"trailing_diamond": "\ue0b4",
|
|
|
|
"type": "time"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "left",
|
|
|
|
"newline": true,
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"properties": {
|
|
|
|
"always_enabled": true
|
|
|
|
},
|
|
|
|
"background": "#fb7e14",
|
|
|
|
"foreground": "#292929",
|
|
|
|
"style": "diamond",
|
|
|
|
"leading_diamond": "\u2570\u2500\ue0b6",
|
2023-05-08 01:37:48 -07:00
|
|
|
"template": "\udb81\ude27",
|
2022-04-04 03:16:49 -07:00
|
|
|
"trailing_diamond": "\ue0b4",
|
|
|
|
"type": "path"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"final_space": true,
|
|
|
|
"version": 2
|
2022-09-22 23:05:06 -07:00
|
|
|
}
|