Commit graph

17 commits

Author SHA1 Message Date
Jan De Dobbeleer cea18715bb refactor: add config version 3 2024-11-04 12:15:40 +01:00
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
vimo b0ac5e3cc7 fix(style): shell command to display time properly 2022-09-10 16:45:31 +02:00
Jan De Dobbeleer ee3b1127de feat: move template to segment 2022-03-27 15:42:42 +02:00
Jan De Dobbeleer 86db860fe6 theme: migrate all 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 29afb86e61 feat(python): virtual env in template 2021-12-04 13:13:05 +01:00
Jan De Dobbeleer f850f3b805 feat(exit): add template properties 2021-11-15 11:39:34 +01:00
Jan De Dobbeleer 2d25c59c00 fix(git): remove Repo struct 2021-11-09 17:16:37 +01:00
Jan De Dobbeleer d29a6befd9 refactor: adjust themes to new git segment properties 2021-11-09 13:26:59 +01:00
Jan De Dobbeleer c24ca82f17 feat: newline as part of block
this deprecates the "newline" block and favours using the newline
property on the Block component. For backwards compatibility we'll
keep recognizing the newline block for the time being.

resolves #607
2021-04-21 19:54:43 +02:00
Jan De Dobbeleer afb69b4229 feat: export image of the current theme 2021-04-11 10:53:10 +02:00
Jan De Dobbeleer 0ec90a1760 fix(themes): remove incorrect error icon
resolves #418
2021-02-27 13:44:04 +01:00
Jan De Dobbeleer b59b4197dc chore: rename repository 2021-02-16 09:00:02 +01:00
TravisTX dbe3fa1bcc feat: include schema declaration in themes 2020-12-31 23:16:20 +01:00
Jan De Dobbeleer 09255ae63d fix: use full block for spaces only with a background
This reverts commit 7d3629c7d4.
This resolves #212
2020-12-02 18:46:36 +01:00
Jan De Dobbeleer 7d3629c7d4 fix: use full block for spaces 2020-12-02 09:26:07 +01:00
Jan De Dobbeleer e68be7aa44 feat: use *.omp.json as theme format 2020-11-28 19:29:44 +01:00
Renamed from themes/pararussel.json (Browse further)