mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 06:54:05 -08:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
---
|
|
id: nbgv
|
|
title: Nerdbank.GitVersioning
|
|
sidebar_label: Nbgv
|
|
---
|
|
|
|
## What
|
|
|
|
Display the [Nerdbank.GitVersioning][nbgv] version.
|
|
|
|
:::caution
|
|
The Nerdbank.GitVersioning CLI can be a bit slow causing the prompt to feel slow.
|
|
:::
|
|
|
|
## Sample Configuration
|
|
|
|
import Config from '@site/src/components/Config.js';
|
|
|
|
<Config data={{
|
|
"type": "nbgv",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#3a579a",
|
|
"template": " \uF1D2 {{ .Version }} "
|
|
}}/>
|
|
|
|
## Template ([info][templates])
|
|
|
|
:::note default template
|
|
|
|
```template
|
|
{{ .Version }}
|
|
```
|
|
|
|
:::
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Description |
|
|
| ------------------------------- | -------- | ------------------------------------------ |
|
|
| `.Version` | `string` | the current version |
|
|
| `.AssemblyVersion` | `string` | the current assembly version |
|
|
| `.AssemblyInformationalVersion` | `string` | the current assembly informational version |
|
|
| `.NuGetPackageVersion` | `string` | the current nuget package version |
|
|
| `.ChocolateyPackageVersion` | `string` | the current chocolatey package version |
|
|
| `.NpmPackageVersion` | `string` | the current npm package version |
|
|
| `.SimpleVersion` | `string` | the current simple version |
|
|
|
|
[nbgv]: https://github.com/dotnet/Nerdbank.GitVersioning
|
|
[templates]: /docs/configuration/templates
|