oh-my-posh/website/docs/configuration
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
..
block.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
colors.mdx fix(ansi): print 256 correctly 2023-02-26 15:48:28 +01:00
debug-prompt.mdx docs: tables for data 2022-09-16 16:35:44 +02:00
example.mdx feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
line-error.mdx docs(error): you can't use cross segment properties 2023-01-09 09:18:18 +01:00
overview.mdx feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
secondary-prompt.mdx docs: tables for data 2022-09-16 16:35:44 +02:00
segment.mdx docs: fix descriptions of min_width and max_width 2023-03-09 09:28:18 +01:00
templates.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
title.mdx docs: rename all to mdx 2022-06-03 20:42:25 +02:00
tooltips.mdx fix(tooltip): check only the first word of command line 2023-04-21 20:49:03 +02:00
transient.mdx feat(transient): add Filler 2023-04-15 18:01:25 +02:00