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

251 lines
6.6 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"properties": {
"prefix": "╭─[",
"postfix": "]─",
"template": "<#ffff55>{{ .UserName }}</><#ff5555>@</><#55ff55>{{ .HostName }}</>"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#ff5555",
"properties": {
"prefix": "<#ffffff>[</>",
"postfix": "<#ffffff>]</>",
"style": "folder",
"enable_hyperlink": true
}
},
{
"type": "root",
"style": "plain",
"foreground": "#FF9248",
"properties": {
"prefix": "<#ffffff>─(</>",
"postfix": "<#ffffff>)</>",
"root_icon": "#"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "node",
"style": "plain",
"foreground": "#3C873A",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>",
"display_package_manager": true,
"yarn_icon": " <#348cba></>",
"npm_icon": " <#cc3a3a></> "
}
},
{
"type": "python",
"style": "plain",
"foreground": "#FFE873",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "java",
"style": "plain",
"foreground": "#ec2729",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "dotnet",
"style": "plain",
"foreground": "#0d6da8",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "go",
"style": "plain",
"foreground": "#06aad5",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "rust",
"style": "plain",
"foreground": "#925837",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "dart",
"style": "plain",
"foreground": "#055b9c",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "angular",
"style": "plain",
"foreground": "#ce092f",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "julia",
"style": "plain",
"foreground": "#359a25",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "ruby",
"style": "plain",
"foreground": "#9c1006",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "azfunc",
"style": "plain",
"foreground": "#5398c2",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>"
}
},
{
"type": "aws",
"style": "plain",
"foreground": "#faa029",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>",
"template": "{{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}
},
{
"type": "kubectl",
"style": "plain",
"foreground": "#316ce4",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)</>",
"template": "{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}"
}
},
{
"type": "os",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "<#ffffff>(</>",
"postfix": "<#ffffff>)─</>",
"windows": "<#ffffff>\ue27f</>",
"macos": "<#ffffff>\ue27f</>",
"linux": "<#ffffff>\ue27f</>"
}
},
{
"type": "battery",
"style": "plain",
"foreground": "#ffffff",
"foreground_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#FFFB38{{end}}",
"{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
],
"properties": {
"discharging_icon": " ",
"charging_icon": "\uf1e6 ",
"charged_icon": "\uf58e ",
"prefix": "<#ffffff>[</>",
"postfix": "%<#ffffff>]─</>"
}
},
{
"type": "time",
"style": "plain",
"foreground": "#55ffff",
"properties": {
"prefix": "<#ffffff>[</>",
"postfix": "<#ffffff>]</>",
"time_format": "_2,15:04"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"properties": {
"prefix": "",
"postfix": "",
"text": "╰─"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#e0f8ff",
"properties": {
"prefix": "<#ffffff>[</>",
"postfix": "<#ffffff>]-</>",
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_upstream_icon": true,
"template": "{{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> ● {{ .Staging.String }}</>{{ end }}{{ if .Working.Changed }}<#D75F00> ● {{ .Working.String }}</>{{ end }}"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#ecf7fa",
"properties": {
"prefix": "\ue285ff",
"display_exit_code": false,
"always_enabled": true,
"error_color": "#ef5350"
}
}
]
}
]
}