Commit graph

16 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
Jan De Dobbeleer bce149b82f fix(azure): correct Azure icon
resolves #4056
2023-07-14 07:28:12 +02:00
Jan De Dobbeleer c57975985f fix(font): migrate away from material icons
resolves #3818
2023-05-09 11:32:04 +02:00
Jan De Dobbeleer 9663a29fe6
feat(font): update to Nerd Font V3
BREAKING CHANGE: this deprecates support for Nerd Font V2 and
requires a compatible V3 Nerd Font. Note for users experiencing
issues with icons, update to the latest Nerd Font of your choice
2023-05-08 13:33:59 +02:00
Jan De Dobbeleer 17f75fa1ff refactor(git): no leading space on branch status 2022-09-07 18:04:41 +02:00
Jan De Dobbeleer 859fd0bbef feat: add osc7 support
resolves #2515
2022-07-13 13:59:21 +02:00
Jan De Dobbeleer ee3b1127de feat: move template to segment 2022-03-27 15:42:42 +02:00
Jan De Dobbeleer 096cb8e997 feat: remove console title style 2022-03-14 22:16:22 +01:00
markbull fb6f8e63df theme: update markbull
1. Adjust the space between icon and text in "session" segment.
2. Add the background color of upstream gone in "git" segment.
3. Add upstream hyperlink and adjust the space between icon and text in "git" segment.
2022-02-16 12:12:24 +01:00
markbull 8f72c37e91 theme: update markbull
1. Add hyperlink in "path" segment
2. Fix display error in "exit" segment
2022-02-04 08:58:20 +01:00
Jan De Dobbeleer 86db860fe6 theme: migrate all 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f5178e8c8c feat: remove enable_hyperlink 2022-02-03 10:44:18 +01:00
markbull 9a187c28b7 theme: update markbull
1. Add icon in "session" segment
2. Add "os" segment
3. Exchange "executiontime" and "exit" position
4. Always enable "executiontime" segment
5. Add icon in "executiontime" segment
2022-01-25 10:16:34 +01:00
markbull 9955d9bbb8 theme: update markbull
1. Show the root/admin icon and the current folder name in console title
2. Update the background color of behind status in git segment
3. Update the git_icon, branch_identical_icon and branch_gone_icon in git segment
2022-01-23 09:36:37 +01:00
markbull 39be04c37e
theme: add markbull 2022-01-09 10:25:45 +01:00