The most customisable and low-latency cross platform/shell prompt renderer
Find a file
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
.devcontainer chore: update devcontainer to go1.20 2023-03-12 10:08:24 +01:00
.github chore(deps): bump wagoid/commitlint-github-action from 5.4.1 to 5.4.3 2023-07-24 00:48:43 +00:00
.vscode feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
packages fix(winget): add installer switches 2023-05-08 20:43:54 +02:00
scripts/bluesky chore(bluesky): remove module definition 2023-07-21 14:45:31 +02:00
src feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
themes feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
website feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
.all-contributorsrc docs: update .all-contributorsrc [skip ci] 2023-07-10 08:27:18 +02:00
.commitlintrc.yml chore: allow commit body lines of 200 characters 2022-09-19 09:16:57 +02:00
.editorconfig refactor: linting checks for all platforms 2020-11-12 14:04:52 +01:00
.gitattributes refactor: linting checks for all platforms 2020-11-12 14:04:52 +01:00
.gitignore chore(discord): fix yaml misalignment 2022-12-24 16:34:27 +01:00
.markdownlint.yaml docs(wifi): fix config block 2021-11-25 07:33:43 +01:00
.markdownlintignore chore: replace .md linter 2021-04-24 19:34:09 +02:00
.versionrc.json docs(segments): revise descriptions for language segments 2022-05-12 17:25:45 +02:00
CODE_OF_CONDUCT.md chore(bluesky): update release text body 2023-05-01 10:07:21 +02:00
CONTRIBUTING.md docs: add conventional comments types hint 2023-03-05 21:10:00 +01:00
COPYING chore: adjust license 2022-02-28 07:48:03 +01:00
cosign.pub feat: sign releases with cosign 2021-12-02 22:53:04 +01:00
README.md chore: add repo review 2023-06-29 07:56:34 +02:00
SECURITY.md chore: add security policy 2022-09-08 08:47:19 +02:00

Oh My Posh – Prompt theme engine for any shell

License

Release Status

Release Documentation

GitHub Downloads

This repo was made with love using GitKraken.

GitKraken shield

Join the community

Mastodon

Discord

What started as the offspring of oh-my-posh2 for PowerShell resulted in a cross platform, highly customizable and extensible prompt theme engine. After 4 years of working on oh-my-posh, a modern and more efficient tool was needed to suit my personal needs.

❤ Support ❤

Swag - Show your love with a t-shirt!

GitHub - One time support, or a recurring donation?

Ko-Fi - No coffee, no code.

Features

  • Shell and platform agnostic
  • Easily configurable
  • The most configurable prompt utility
  • Fast
  • Secondary prompt
  • Right prompt
  • Transient prompt

Documentation

Documentation

Reviews

Thanks

  • Chris Benti for providing the first influence to start oh-my-posh
  • Keith Dahlby for creating posh-git and making life more enjoyable
  • Robby Russell for creating oh-my-zsh, without him this would probably not be here
  • Janne Mareike Koschinski for providing information on how to get certain information using Go (and the amazing README)
  • Starship for creating an amazing way to initialize the prompt