mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
c57975985f
resolves #3818
69 lines
2 KiB
JSON
69 lines
2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"background": "#EB9654",
|
|
"foreground": "#ffffff",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"display_host": false
|
|
},
|
|
"style": "diamond",
|
|
"template": "{{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} ",
|
|
"type": "session"
|
|
},
|
|
{
|
|
"background": "lightYellow",
|
|
"foreground": "#3f3f3f",
|
|
"properties": {
|
|
"style": "full"
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .Path }} ",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "#25AFF3",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"fetch_status": true
|
|
},
|
|
"style": "plain",
|
|
"template": " branch ({{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}) ",
|
|
"type": "git"
|
|
},
|
|
{
|
|
"background": "#1BD760",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"paused_icon": "",
|
|
"playing_icon": "",
|
|
"stopped_icon": "",
|
|
"track_separator": " - "
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ",
|
|
"type": "spotify"
|
|
},
|
|
{
|
|
"background": "#cc00ff",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"time_format": "15:04:05"
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ .CurrentDate | date .Format }} ",
|
|
"trailing_diamond": "\ue0b0",
|
|
"type": "time"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"final_space": true,
|
|
"version": 2
|
|
}
|