mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49:39 -08:00
e6d4413ae7
BREAKING CHANGE: adjusts the way some segment work for templates. Mapping the var names as following will resolve the issue. - session/title/general purpose - .Host -> .HostName - .User -> .UserName - az - .UserName -> .Name - kubectl - .UserName -> .User
70 lines
1.9 KiB
JSON
70 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "session",
|
|
"style": "diamond",
|
|
"foreground": "#ffffff",
|
|
"background": "#07585c",
|
|
"leading_diamond": "\uE0B6",
|
|
"properties": {
|
|
"template": "{{ .UserName }}@{{ .HostName }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "#ffffff",
|
|
"background": "#3e9022",
|
|
"properties": {
|
|
"prefix": " \uE5FF ",
|
|
"style": "folder"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "#ffffff",
|
|
"background": "#de076f",
|
|
"properties": {
|
|
"fetch_upstream_icon": true,
|
|
"branch_icon": "",
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "spotify",
|
|
"style": "plain",
|
|
"foreground": "#ffffff",
|
|
"background": "#491545",
|
|
"properties": {
|
|
"prefix": " \uF9C6 ",
|
|
"playing_icon": "\uE602 ",
|
|
"paused_icon": "\uF8E3 ",
|
|
"stopped_icon": "\uF04D ",
|
|
"track_separator" : " - "
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "diamond",
|
|
"trailing_diamond": "\uE0B4",
|
|
"foreground": "#ffffff",
|
|
"background": "#491515",
|
|
"background_templates": ["{{ if gt .Code 0 }}#f1184c{{ end }}"],
|
|
"properties": {
|
|
"template": "\uF7d4",
|
|
"always_enabled": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"final_space": true
|
|
}
|
|
|