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

147 lines
3.8 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#007ACC",
"foreground": "#222222",
"properties": {
"style": "austin",
"threshold": 321
},
"style": "plain",
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"background": "#880000",
"foreground": "#ff8888",
"style": "plain",
"template": "{{ if gt .Code 0 }} {{ .Code }} {{ end }}",
"type": "status"
},
{
"background": "#ffcc88",
"foreground": "#222222",
"style": "plain",
"template": "\uf0e7",
"type": "root"
},
{
"background": "#222222",
"foreground": "#666666",
"style": "plain",
"template": " {{ if .WSL }}\uebcc {{ end }}{{.Icon}}",
"type": "os"
},
{
"background": "#222222",
"foreground": "#666666",
"style": "plain",
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"background": "#444444",
"foreground": "#cccccc",
"properties": {
"folder_icon": "\u2026",
"style": "mixed"
},
"style": "plain",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "#f14e32",
"foreground": "#f0efe7",
"properties": {
"branch_icon": "\ue725 ",
"cherry_pick_icon": "\ue29b ",
"commit_icon": "\uf417 ",
"fetch_status": false,
"fetch_upstream_icon": false,
"merge_icon": "\ue727 ",
"no_commits_icon": "\uf0c3 ",
"rebase_icon": "\ue728 ",
"revert_icon": "\uf0e2 ",
"tag_icon": "\uf412 "
},
"style": "plain",
"template": " {{ .HEAD }} ",
"type": "git"
},
{
"background": "#7014eb",
"foreground": "#ffffff",
"properties": {
"fetch_version": false
},
"style": "plain",
"template": " \ue77f ",
"type": "dotnet"
},
{
"background": "#7FD5EA",
"foreground": "#ffffff",
"properties": {
"fetch_version": false
},
"style": "plain",
"template": " \ue626 ",
"type": "go"
},
{
"background": "#906cff",
"foreground": "#100e23",
"properties": {
"fetch_version": false
},
"style": "plain",
"template": " \ue235 ",
"type": "python"
},
{
"background": "#99908a",
"foreground": "#193549",
"properties": {
"fetch_version": false
},
"style": "plain",
"template": " \ue7a8 ",
"type": "rust"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#007ACC",
"style": "plain",
"template": "{{ .Name }} ",
"type": "shell",
"properties": {
"mapped_shell_names": {
"pwsh": "\u276f",
"shell": "\u276f",
"cmd": ">",
"lua": ">",
"nu": ":)",
"fish": "~>",
"zsh": "%",
"bash": "$"
}
}
}
],
"type": "prompt"
}
],
"version": 2
}