oh-my-posh/website/docs/segments/fossil.mdx

72 lines
2.6 KiB
Plaintext
Raw Normal View History

2022-06-05 07:30:39 -07:00
---
id: fossil
title: Fossil
sidebar_label: Fossil
---
## What
Display [fossil][fossil] information when in a fossil repository.
## Sample Configuration
2023-03-31 11:55:36 -07:00
import Config from '@site/src/components/Config.js';
<Config data={{
2022-06-05 07:30:39 -07:00
"type": "fossil",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#ffeb3b"
2023-03-31 11:55:36 -07:00
}}/>
2022-06-05 07:30:39 -07:00
## Properties
| Name | Type | Default | Description |
| ----------------- | :-------: | :-----: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `native_fallback` | `boolean` | `false` | when set to `true` and `fossil.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil executable to fetch data. Not all information can be displayed in this case |
2022-06-05 07:30:39 -07:00
## Template ([info][templates])
:::note default template
```template
\ue725 {{.Branch}} {{.Status.String}}
2022-06-05 07:30:39 -07:00
```
:::
### Properties
| Name | Type | Description |
| --------- | -------------- | ----------------------------------- |
| `.Status` | `FossilStatus` | changes in the worktree (see below) |
| `.Branch` | `string` | current branch |
2022-06-05 07:30:39 -07:00
### FossilStatus
| Name | Type | Description |
| --------------- | --------- | -------------------------------------------- |
| `.Modified` | `int` | number of edited, updated and changed files |
| `.Deleted` | `int` | number of deleted files |
| `.Added` | `int` | number of added files |
| `.Moved` | `int` | number of renamed files |
| `.Conflicted` | `int` | number of conflicting files |
| `.Changed` | `boolean` | if the status contains changes or not |
| `.HasConflicts` | `boolean` | if the status contains conflicts or not |
| `.String` | `string` | a string representation of the changes above |
Local changes use the following syntax:
| Icon | Description |
| ---- | ----------- |
| `+` | added |
| `!` | conflicted |
| `-` | deleted |
| `~` | modified |
| `>` | moved |
2022-06-05 07:30:39 -07:00
[fossil]: https://fossil-scm.org
[templates]: /docs/config-templates
[hyperlinks]: /docs/config-templates#custom