oh-my-posh/themes/nu4a.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

93 lines
2.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"osc99": false,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.UserName}} ➔ 📁{{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "powerline",
"foreground": "#100e23",
"background": "#cfcfc4",
"background_templates": [
"{{if .Root}}#ff3026{{else}}#cfcfc4{{end}}"
],
"properties": {
"prefix": "",
"postfix": "",
"display_host": false,
"template": "{{if .Root}} \uF0E7 {{.UserName}} {{else}} {{.UserName}} {{end}}"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ec9706",
"properties": {
"home_icon": "\uF7DB",
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 \uE5FF ",
"style": "full",
"enable_hyperlink": true
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4",
"properties": {
"template": "{{ .HEAD }}"
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "exit",
"style": "diamond",
"leading_diamond": "\ue0c2",
"trailing_diamond": "\ue0c0",
"foreground": "#ffffff",
"background": "#ff4040",
"properties": {
"template": "\ue70f"
}
},
{
"type": "executiontime",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"leading_diamond": "\ue0b2",
"properties": {
"style": "austin"
}
}
]
}
]
}