Commit graph

14 commits

Author SHA1 Message Date
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 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
SJ Basak 03054aa53b theme(atomicBit): show calendar icon
Updated line 152 to show the calendar icon at the right of the date and time.
2022-10-02 19:26:07 +02:00
Jan De Dobbeleer 859fd0bbef feat: add osc7 support
resolves #2515
2022-07-13 13:59:21 +02:00
evanfuture a4e8bc1b60 feat: nx segment 2022-05-27 17:52:08 +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 f5178e8c8c feat: remove enable_hyperlink 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer b816a0bf70 feat: templates for all segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer e6d4413ae7 feat: adjust var names for consistency
BREAKING CHANGE: adjusts the way some segment work for templates.

Mapping the var names as following will resolve the issue.
- session/title/general purpose
    - .Host -> .HostName
    - .User -> .UserName
- az
    - .UserName -> .Name
- kubectl
    - .UserName -> .User
2022-01-17 16:29:39 +01:00
Jan De Dobbeleer a08a3a9a21 feat(session): refactor for template 2021-12-03 23:50:50 +01:00
Jan De Dobbeleer b94e96dd15 refactor(battery): remove legacy properties 2021-11-25 13:59:36 +01:00
Luis Felipe Sánchez 737db78bdc
theme: add atomic bit
* oh-my-posh theme

New Atomic Style Theme by lfelipe1501

* Atomic Theme for oh-my-posh

Update theme

* Update atomic.omp.json

improved and adjusted attending the recommended improvements

* Update Theme Atomic

Small fixes and improvements

* New Theme Atomic Bundle Style

New Theme more bash style retro...
2021-11-24 13:08:13 +01:00