oh-my-posh/themes/atomicBit.omp.json
Jan De Dobbeleer f47da9592f feat(exit): implement pipestatus
BREAKING CHANGE: exit segment is now called status segment.

The exit keyword is now deprecated and will be removed in a future
release. Please use the status keyword instead:

```diff
"segments": {
    {
-     "type": "exit"
+     "type": "status"
    }
}
```

Additionally, the status segment configuration has changed to support
$PIPESTATUS. You can include a status template to customize the
rendering of each individual status code (supported in fish, zsh and
bash).

```json
"segments": {
    {
        "type": "status",
        "properties": {
            "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}",
            "status_separator": " "
        }
    }
}
```

In case no $PIPESTATUS is available, the status segment will fall back
to the exit code of the last command using the status template
for rendering.

The `{{ .Meaning }}` property has been marked as deprecated and can be
replaced with `{{ reason .Code }}`, allowing it to be reused in
cross segment templates.

resolves #4070
2023-07-24 11:46:33 +02:00

194 lines
6.3 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"style": "plain",
"template": "\u256d\u2500[<#ffff55>{{ .UserName }}</><#ff5555>@</><#55ff55>{{ .HostName }}</>]\u2500",
"type": "session"
},
{
"foreground": "#ff5555",
"style": "plain",
"template": "<#ffffff>[</>{{ .Path }}<#ffffff>]</>",
"type": "path"
},
{
"foreground": "#FF9248",
"style": "plain",
"template": "<#ffffff>\u2500(</>#<#ffffff>)</>",
"type": "root"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#3C873A",
"properties": {
"fetch_package_manager": true,
"npm_icon": " <#cc3a3a>\ue5fa</> ",
"yarn_icon": " <#348cba>\ue6a7</>"
},
"style": "plain",
"template": "<#ffffff>(</>{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#ffffff>)</>",
"type": "node"
},
{
"foreground": "#FFE873",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "python"
},
{
"foreground": "#ec2729",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "java"
},
{
"foreground": "#0d6da8",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "dotnet"
},
{
"foreground": "#06aad5",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "go"
},
{
"foreground": "#925837",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "rust"
},
{
"foreground": "#055b9c",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "dart"
},
{
"foreground": "#ce092f",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "angular"
},
{
"foreground": "#ffffff",
"style": "plain",
"template": "<#1e293b>(</>{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}<#1e293b>)</>",
"type": "nx"
},
{
"foreground": "#359a25",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "julia"
},
{
"foreground": "#9c1006",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "ruby"
},
{
"foreground": "#5398c2",
"style": "plain",
"template": "<#ffffff>(</>{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#ffffff>)</>",
"type": "azfunc"
},
{
"foreground": "#faa029",
"style": "plain",
"template": "<#ffffff>(</>{{.Profile}}{{if .Region}}@{{.Region}}{{end}}<#ffffff>)</>",
"type": "aws"
},
{
"foreground": "#316ce4",
"style": "plain",
"template": "<#ffffff>(</>{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ffffff>)</>",
"type": "kubectl"
},
{
"foreground": "#ffffff",
"properties": {
"linux": "<#ffffff>\ue27f</>",
"macos": "<#ffffff>\ue27f</>",
"windows": "<#ffffff>\ue27f</>"
},
"style": "plain",
"template": "<#ffffff>(</>{{ if .WSL }}WSL at {{ end }}{{.Icon}}<#ffffff>)\u2500</>",
"type": "os"
},
{
"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": {
"charged_icon": "\uf240 ",
"charging_icon": "\uf1e6 ",
"discharging_icon": "\ue234 "
},
"style": "plain",
"template": "<#ffffff>[</>{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}%<#ffffff>]\u2500</>",
"type": "battery"
},
{
"foreground": "#55ffff",
"properties": {
"time_format": "_2,15:04"
},
"style": "plain",
"template": "<#ffffff>[</>\uf073{{ .CurrentDate | date .Format }}<#ffffff>]</>",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"style": "plain",
"template": "\u2570\u2500",
"type": "text"
},
{
"foreground": "#e0f8ff",
"properties": {
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "plain",
"template": "<#ffffff>[</>{{ .HEAD }}{{ if .Staging.Changed }}<#00AA00> \u25cf {{ .Staging.String }}</>{{ end }}{{ if .Working.Changed }}<#D75F00> \u25cf {{ .Working.String }}</>{{ end }}<#ffffff>]-</>",
"type": "git"
},
{
"foreground": "#ecf7fa",
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "\ue285\ueb9e ",
"type": "status"
}
],
"type": "prompt"
}
],
"version": 2
}