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
69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "#CB4B16",
|
|
"properties": {
|
|
"template": "{{ .Text }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "root",
|
|
"style": "plain",
|
|
"foreground": "#CECE04"
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "plain",
|
|
"foreground": "#FFFFFF",
|
|
"properties": {
|
|
"prefix": "",
|
|
"template": "{{ .UserName }}@{{ .HostName }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "#0973C0",
|
|
"properties": {
|
|
"style": "full",
|
|
"prefix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "#C1C106",
|
|
"properties": {
|
|
"prefix": "<#ffffff>git:</>",
|
|
"template": "{{ .HEAD }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "python",
|
|
"style": "plain",
|
|
"foreground": "#100e23",
|
|
"properties": {
|
|
"prefix": " \uE235 "
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"style": "plain",
|
|
"foreground": "#ffffff",
|
|
"properties": {
|
|
"prefix": "",
|
|
"text": "<#CB4B16>\u276F</><#CACA02>\u276F</><#4E9A06>\u276F</>"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|