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-09 02:08:45 -07:00
|
|
|
"charging_icon": "\ueb2d ",
|
|
|
|
"discharging_icon": "\ueb2d ",
|
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",
|
2023-07-23 00:29:54 -07:00
|
|
|
"template": " {{ if gt .Code 0 }}\uf00d {{ reason .Code }}{{ else }}\uf00c{{ end }} ",
|
2022-04-04 03:16:49 -07:00
|
|
|
"trailing_diamond": "\ue0b4",
|
2023-07-23 00:29:54 -07:00
|
|
|
"type": "status"
|
2022-04-04 03:16:49 -07:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alignment": "right",
|
|
|
|
"segments": [
|
|
|
|
{
|
|
|
|
"background": "#292929",
|
|
|
|
"foreground": "#fb7e14",
|
|
|
|
"leading_diamond": "\ue0b6",
|
|
|
|
"style": "diamond",
|
2023-05-09 02:08:45 -07:00
|
|
|
"template": " {{ if .SSHSession }}\ueba9 {{ 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-09 02:08:45 -07:00
|
|
|
"template": "{{ .CurrentDate | date .Format }} \uf073 ",
|
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-09 02:08:45 -07:00
|
|
|
"template": "\ue7ad",
|
2022-04-04 03:16:49 -07:00
|
|
|
"trailing_diamond": "\ue0b4",
|
|
|
|
"type": "path"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"type": "prompt"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"final_space": true,
|
2024-10-28 05:59:40 -07:00
|
|
|
"version": 3
|
2022-09-22 23:05:06 -07:00
|
|
|
}
|