oh-my-posh/themes/powerlevel10k_classic.omp.json
Jan De Dobbeleer e6d4413ae7 feat: adjust var names for consistency
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
2022-01-17 16:29:39 +01:00

102 lines
2.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"postfix": " \uE0B1"
}
},
{
"type": "root",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A"
},
{
"type": "path",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D4E157",
"background": "#546E7A",
"properties": {
"prefix": "<#26C6DA>\uE0B1 </>",
"template": "{{ .HEAD }}"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#546E7A",
"background": "transparent",
"properties": {
"text": "\uE0B0",
"prefix": "",
"postfix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#D4E157",
"background": "#546E7A",
"leading_diamond": "\uE0B2",
"properties": {
"postfix": " <#26C6DA>\uE0B3</> ",
"template": "{{ .UserName }}@{{ .HostName }}"
}
},
{
"type": "time",
"style": "plain",
"foreground": "#D4E157",
"background": "#546E7A",
"properties": {
"time_format": "15:04:05",
"postfix": " \uF017 "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#D4E157",
"foreground_templates": ["{{ if gt .Code 0 }}#FF5252{{ end }}"],
"properties": {
"template": "\u276F",
"prefix": "",
"always_enabled": true
}
}
]
}
]
}