mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 07:17:26 -08:00
f6703e9c2c
resolves #2355
44 lines
741 B
Plaintext
44 lines
741 B
Plaintext
---
|
|
id: poshgit
|
|
title: Posh-Git
|
|
sidebar_label: Git (posh-git)
|
|
---
|
|
|
|
## What
|
|
|
|
Display the [posh-git][posh-git] prompt.
|
|
|
|
:::caution
|
|
This segment only works within Powershell and requires the posh-git module to be installed and imported
|
|
as well as `$env:POSH_GIT_ENABLED = $true` added to your `$PROFILE`.
|
|
:::
|
|
|
|
## Sample Configuration
|
|
|
|
```json
|
|
{
|
|
"type": "poshgit",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#0077c2"
|
|
}
|
|
```
|
|
|
|
## Template ([info][templates])
|
|
|
|
:::note default template
|
|
|
|
``` template
|
|
{{ .Status }}
|
|
```
|
|
|
|
:::
|
|
|
|
### Properties
|
|
|
|
- `.Status`: `string` - the status reported from posh-git
|
|
|
|
[posh-git]: https://github.com/dahlbyk/posh-git
|
|
[templates]: /docs/configuration/templates
|