Commit graph

261 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 aacef4b186 feat: add quasar segment 2023-07-21 14:45:31 +02:00
Jan De Dobbeleer 1f283051d2 fix(os): use correct Android platform name 2023-07-14 16:17:36 +02:00
Jan De Dobbeleer b27608dd73 feat(kubectl): specify context aliases 2023-07-14 14:00:02 +02:00
Jan De Dobbeleer 32ee6fa7ab feat(scm): allow status override
resolves #3992
2023-06-26 08:50:53 +02:00
nopeless 920f24ea65
chore: schema support for lucky7 2023-06-20 11:51:45 +02:00
Jan De Dobbeleer 4c0c596c2c feat(path): add option to colorize first and last folder 2023-06-15 09:33:16 +02:00
Jan De Dobbeleer ad2780f964 feat(path): add option to format folders 2023-06-13 20:22:42 +02:00
Bohdan Dorokhin 6e9d072b5f
feat(sitecore): support CLI context switching
BREAKING CHANGE: you will need to migrate your current sitecore segment template
 in case you have a custom one. Have a look at the documentation to see what changed.
2023-06-08 07:40:05 +02:00
Jan De Dobbeleer dd68da8793 feat(git): fetch user information
resolves #3933
2023-06-06 08:06:00 +02:00
Parker Mauney 2751a7c206 fix(schema): replace $id with canonical URI 2023-05-21 01:19:40 +02:00
L. Yeung c3c7c9e6e0 fix(schema): add upgrade to segment types 2023-05-20 08:05:21 +02:00
L. Yeung 6c7cffc69a fix(schema): add definitions of upgrade and correct outdated links 2023-05-19 20:51:51 +02:00
Bas Lijten c5193c9880 feat: new Sitecore context segment 2023-05-18 21:41:05 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00: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 66ca5ccf1f feat(path): allow coloring the folder_separator_icon on cycle 2023-04-25 20:42:12 +02:00
Jan De Dobbeleer cdc560c7bd feat(transient): add Filler 2023-04-15 18:01:25 +02:00
Jan De Dobbeleer 17bd13b0fc feat(cftarget): add display_mode 2023-03-28 20:21:56 +02:00
Jan De Dobbeleer 6af47a61d5 feat(path): add powerlevel style
resolves #3607
2023-03-21 20:47:17 +01:00
Jan De Dobbeleer 5ec65ab373 feat: add docker segment
resolves #3549
2023-03-05 14:45:28 +01:00
Colt 1ceba7d603
feat: add Unity segment 2023-02-26 14:37:37 +00:00
jan De Dobbeleer dd32018836 feat: add sapling segment 2023-02-16 15:24:19 +01:00
Jan De Dobbeleer 51fd45dc60 feat(git): allow to exclude repo's from status fetching 2023-01-26 19:58:31 +01:00
David Courtney 822b7c755e feat: add mercurial segment 2023-01-11 15:25:11 +01:00
Jan De Dobbeleer 86459f9a2f feat: cycle through colors
resolves #3327
2023-01-10 13:54:51 +01:00
Jan De Dobbeleer a2353d93e7 feat: add vala segment
resolves #3329
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer 2751a243ef feat: add elixir segment
resolves #3314
2023-01-09 09:18:18 +01:00
kamfaima 25c6963f3f chore: change default icon for Azure DevOps 2023-01-09 07:47:43 +01:00
NoF0rte 9d81f5a362 feat(style): segment style as a template string 2022-12-29 19:44:50 +01:00
NoF0rte 9e40a1a0dc feat: conditional segment styles 2022-12-29 19:44:50 +01:00
mirsella 93f6576da0 feat: allow segments to hide based on terminal width 2022-12-03 11:20:06 +01:00
Lemorz56 acd4d01d4d feat: add gitversion segment 2022-11-30 12:51:08 +01:00
Ted Reed 1c7db480f9 feat(shell): osc51 support
working directory OSC for emacs-libvterm
2022-11-27 10:14:55 +01:00
Jan De Dobbeleer c8fb6322eb feat(os): support for alma and rocky linux
resolves #3101
2022-11-25 13:37:21 +01:00
Gerben Welter 636a5e29fc
feat(os): add Redhat icon 2022-11-22 20:38:30 +01:00
Romain Chardiny ae4f8133ca feat(segment): add xmake 2022-11-05 20:10:01 +01:00
Jan De Dobbeleer 48d1015c3e fix(schema): correct palette reference
resolves #2950
2022-10-16 00:18:00 +02:00
Jan De Dobbeleer 3efa4df088 feat(palette): conditional palettes 2022-10-14 20:25:00 +02:00
Jan De Dobbeleer e0b28bd2c4 feat(git): disable bare repo's by default
relates to #2913
2022-10-13 08:40:29 +02:00
LNK LEO 4b6b128d74 feat(connection): new segment
BREAKING CHANGE: this will need a manual migration from the wifi
segment to the new connection segment.
2022-10-05 16:16:17 +02:00
Jan De Dobbeleer b87a7f7da2 fix(poshgit): remove all references 2022-09-23 08:46:12 +02:00
Jan De Dobbeleer aecd8d6bfd feat(templates): segment alias
resolves #2811
2022-09-20 20:14:31 +02:00
Jan De Dobbeleer c3c72b17b3 feat: deno segment
resolves #2764
2022-09-18 09:50:09 +02:00
Jan De Dobbeleer 3ded4c00fc feat(posh-git): parse environment variable
BREAKING CHANGE: this removes the posh-git segment. To mitigate,
rename the posh-git segment to git.

In case you had a custom template, make sure to migrate to the git
segment's template. You can now also leverage the same logic and
properties as the git segment in both the text template and/or
color templates.
2022-09-07 18:04:41 +02:00
Stephen Judd f6ec503bbf
feat: add Google Cloud (gcp) segment 2022-08-17 18:12:18 +02:00
Jan De Dobbeleer bdf447cc21 theme(schema): add value type indicator for timeouts
relates to #2662
2022-08-16 21:34:19 +02:00
Jan De Dobbeleer 8426f81e71 feat(executiontime): add galvestonms
resolves #2494
2022-07-21 13:43:02 +02:00
Jan De Dobbeleer a4ef99acdb feat(command): run script
resolves #2556
2022-07-21 10:47:16 +02:00
jedwillick f37e5767c2 feat: add lua segment 2022-07-20 12:42:44 +02:00
Jan De Dobbeleer 2ec6b085fd feat: withings segment 2022-07-20 07:40:51 +02:00
Kushal-Chandar 3a8907c48e feat(segment): added cmake segment 2022-07-15 13:38:34 +02:00
Jan De Dobbeleer 859fd0bbef feat: add osc7 support
resolves #2515
2022-07-13 13:59:21 +02:00
L. Yeung a4fed850a0 fix(schema): add debug_prompt property and update links 2022-07-10 18:05:36 +02:00
Michael Carman 43fee03fcb
feat: perl segment 2022-07-08 12:21:08 +02:00
Jan De Dobbeleer 24d2ef4767 feat(templates): advanced templates logic
resolves #2491
2022-07-08 12:09:22 +02:00
Jan De Dobbeleer 9f9b91e566 feat: deprecate offset properties 2022-07-03 11:00:30 +02:00
Jan De Dobbeleer 718ce22682 feat(git): set ignore-submodules flag
resolves #2455
2022-06-30 18:13:08 +02:00
shyguyCreate e842b1d41e fix(schema): overflow property 2022-06-28 06:22:07 +02:00
Jan De Dobbeleer f403db826f feat: hide/break right aligned block on overflow
resolves #2442
2022-06-27 19:48:00 +02:00
Jan De Dobbeleer 82b83d1fa4 feat: support 256 colors
resolves #2429
2022-06-22 08:18:59 +02:00
Jan De Dobbeleer 5b2ba33b98 docs: add subversion schema + info 2022-06-05 16:41:35 +02:00
Jan De Dobbeleer 7b6f791026 docs: add flutter schema 2022-06-05 16:41:35 +02:00
Jan De Dobbeleer d1501a6211 feat: fossil segment
resolves #2373
2022-06-05 16:41:35 +02:00
evanfuture a4e8bc1b60 feat: nx segment 2022-05-27 17:52:08 +02:00
the-eduardo 3cb16def6e
docs: fix broken links 2022-05-23 10:14:14 +02:00
Jan De Dobbeleer a51716d5ac feat(windows): accent color 2022-05-22 10:36:10 +02:00
L. Yeung 91df72d72e fix(schema): revise properties of language segments 2022-05-16 18:08:43 +02:00
Jan De Dobbeleer ee56154231 feat: interactive prompt sequences 2022-05-16 07:05:22 +02:00
Jan De Dobbeleer e392ab667d feat(battery): decouple not charging from discharging
resolves #2237
2022-05-10 07:44:03 +02:00
ehawman-rosenberg 0d4adf2c67
fix: iterm to schema (& sort), theme contrast fix 2022-05-02 06:10:44 +02:00
L. Yeung 0c75d2a063 fix(schema): update reference links 2022-04-23 18:22:52 +02:00
Jan De Dobbeleer bcf7d59e83 feat(git): set untracked files mode
resolves #2117
2022-04-22 08:22:53 +02:00
Jan De Dobbeleer 5e02063323 feat: add accordion segment style 2022-04-16 13:21:19 +02:00
Chris Donnelly 6d49363165 fix(schema): documentation links on block, segment 2022-04-15 20:43:54 +02:00
xadozuk 166b22fdf0 docs: update az segment schema
Move 'source' property to 'properties' object
2022-04-07 14:13:34 +02:00
L. Yeung 4046b2d154 theme: correct typo in schema
`con` -> `icon`
2022-04-03 19:39:08 +02:00
Alex 'Avunia' Takiya 67735c03b6 fix(themes): updates ref of color_templates items 2022-03-28 06:09:23 +02:00
Jan De Dobbeleer ee3b1127de feat: move template to segment 2022-03-27 15:42:42 +02:00
Jan De Dobbeleer 8b5c2a35ca feat(transient): color template support 2022-03-25 08:54:56 +01:00
Jacek W 63802ca046 fix(themes): add missing values to segment enum 2022-03-20 22:09:17 +01:00
jedwillick 2ff5b87f97 feat: adds r segment 2022-03-19 10:17:51 +01:00
Jan De Dobbeleer 096cb8e997 feat: remove console title style 2022-03-14 22:16:22 +01:00
Jan De Dobbeleer a64a041c86
chore: remove post- and prefix references
relates to #1916
2022-03-13 20:24:49 +01:00
Elio Struyf 458ac80935 feat: project segment 2022-03-12 22:08:32 +01:00
Elio Struyf 1e3937f5f2 feat: npm segment 2022-03-10 22:09:30 +01:00
Jan De Dobbeleer 1b81e085e9 feat(az): allow switching between subscription source
relates to #1562
2022-03-09 14:01:16 +01:00
Jacek W f2a8cbe990 feat: cds segment 2022-03-09 10:10:55 +01:00
jedwillick e075f76718 feat: add hide root to agnoster short 2022-03-05 13:12:49 +01:00
jedwillick 9cb0775b25 feat(swift): add swift segment 2022-03-03 08:00:14 +01:00
jedwillick 60ec1c6768 feat(kotlin): adds kotlin segment 2022-03-01 10:15:21 +01:00
Jacek W 882e541b96 feat: cloud foundry target segment 2022-02-22 20:05:40 +01:00
Jan De Dobbeleer dec5691435 feat: secondary prompt 2022-02-20 14:01:04 +01:00
Jan De Dobbeleer cb70ed4b41 feat(pwsh): support PromptText 2022-02-19 19:23:56 +01:00
Jacek W b10b8dc2f0 feat: cloud foundry segment 2022-02-17 12:58:20 +01:00
Jacek W b47e057f14
feat: UI5 tooling segment 2022-02-14 07:41:33 +00:00
Jan De Dobbeleer d1bd686674 feat(path): unique letters style
resolves #1663
2022-02-09 10:46:15 +01:00
JedWillick 2046dcefeb feat(haskell): add haskell segment 2022-02-08 19:56:30 +01:00
lnu b9916f559a feat(path): json schema updated
Missing mixed_threshold property added
Typo in max_depth description
2022-02-07 07:03:26 +01:00