mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -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
60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "root",
|
|
"style": "plain",
|
|
"foreground": "#CECE04",
|
|
"properties": {
|
|
"prefix": "",
|
|
"root_icon": "#"
|
|
}
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "plain",
|
|
"properties": {
|
|
"prefix": "",
|
|
"template": "{{ .UserName }}@{{ .HostName }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "#7B68EE",
|
|
"properties": {
|
|
"style": "agnoster_short",
|
|
"prefix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "#48D1CC",
|
|
"properties": {
|
|
"prefix": "HEAD:",
|
|
"branch_icon": "",
|
|
"fetch_upstream_icon": false,
|
|
"template": "{{ .UpstreamIcon }}{{ .HEAD }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "#7FFFD4",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}#E84855{{ end }}"],
|
|
"properties": {
|
|
"always_enabled": true,
|
|
"template": "<#66CDAA>\u276F</><#76EEC6>\u276F</><foreground>\u276F</>",
|
|
"prefix": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|