Back to Oh My Posh

WinGet

website/docs/segments/system/winget.mdx

29.12.01.5 KB
Original Source

What

Displays the number of available WinGet package updates. This segment only appears when there are updates available.

:::info This segment is only available on Windows. :::

Sample Configuration

import Config from "@site/src/components/Config.js";

<Config data={{ type: "winget", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#0077c2", template: " \uf409 {{ .UpdateCount }} ", cache: { duration: "24h", strategy: "device", }, }} />

Template (info)

:::note default template

template
 \uf409 {{ .UpdateCount }}

:::

Properties

NameTypeDescription
.UpdateCountintthe number of packages with available updates
.Updates[]WinGetPackagearray of packages with available updates

WinGetPackage

NameTypeDescription
.Namestringthe package name
.IDstringthe package ID
.Currentstringthe currently installed version
.Availablestringthe available version for update