oh-my-posh/website/docs
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
..
configuration feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
contributing feat: upgrade segment 2023-05-18 19:55:29 +02:00
installation docs: add ca-certificates info 2023-07-21 14:45:31 +02:00
segments feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
auth.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
contributors.md docs: update website/docs/contributors.md [skip ci] 2023-07-10 08:27:18 +02:00
faq.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
introduction.md docs: themes linking to master branch caused 404s 2022-09-13 20:32:42 +02:00
migrating-module.md feat: withings segment 2022-07-20 07:40:51 +02:00
share-theme.md docs: tweak tips, cautions and warnings 2022-08-10 13:21:00 +02:00
themes.md docs(font): install as admin 2022-06-03 16:54:26 +02:00