oh-my-posh/website/docs/segments
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
..
angular.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
argocd.mdx feat(argocd): add context segment 2023-04-07 10:00:49 +02:00
aws.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
az.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
azfunc.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
battery.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
brewfather.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
buf.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
cds.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
cf.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
cftarget.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
cmake.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
command.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
connection.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
crystal.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
dart.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
deno.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
docker.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
dotnet.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
elixir.mdx feat: use asdf to determine elixir version 2023-07-10 08:26:44 +02:00
executiontime.mdx fix: lucky7 formatting in markdown 2023-06-27 14:41:11 +02:00
flutter.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
fossil.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
gcp.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
git.mdx feat(scm): allow status override 2023-06-26 08:50:53 +02:00
gitversion.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
golang.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
haskell.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
ipify.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
iterm.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
java.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
julia.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
kotlin.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
kubectl.mdx feat(kubectl): specify context aliases 2023-07-14 14:00:02 +02:00
lua.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
mercurial.mdx feat(scm): allow status override 2023-06-26 08:50:53 +02:00
nbgv.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
nightscout.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
node.mdx fix(node): invert .Mismatch logic 2023-06-26 10:29:08 +02:00
npm.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
nx.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
os.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
owm.mdx feat: update Open Weather Map to use Geocoding API 2023-05-21 15:01:06 +02:00
path.mdx feat(path): add option to colorize first and last folder 2023-06-15 09:33:16 +02:00
perl.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
php.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
plastic.mdx feat(scm): allow status override 2023-06-26 08:50:53 +02:00
project.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
python.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
quasar.mdx feat: add quasar segment 2023-07-21 14:45:31 +02:00
r.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
root.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
ruby.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
rust.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
sapling.mdx feat(scm): allow status override 2023-06-26 08:50:53 +02:00
session.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
shell.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
sitecore.mdx feat(sitecore): support CLI context switching 2023-06-08 07:40:05 +02:00
spotify.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
status.mdx feat(exit): implement pipestatus 2023-07-24 11:46:33 +02:00
strava.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
svn.mdx feat(scm): allow status override 2023-06-26 08:50:53 +02:00
swift.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
sysinfo.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
terraform.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
text.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
time.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
ui5tooling.mdx fix(font): migrate away from material icons 2023-05-09 11:32:04 +02:00
unity.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
upgrade.mdx feat: upgrade segment 2023-05-18 19:55:29 +02:00
vala.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
wakatime.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
winreg.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
withings.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
xmake.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00
ytm.mdx docs: add all supported config formats 2023-03-31 21:17:00 +02:00