Back to Oh My Posh

Upgrade notice

website/docs/segments/system/upgrade.mdx

29.12.01.5 KB
Original Source

What

Displays when there's an update available for Oh My Posh.

Sample Configuration

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

<Config data={{ type: "upgrade", style: "plain", foreground: "#111111", background: "#FFD664", options: { cache_duration: "168h", }, }} />

Options

NameTypeDefaultDescription
cache_durationstring168hthe duration for which the segment will be cached. The duration is a string in the format 1h2m3s and is parsed using the time.ParseDuration function from the Go standard library. To disable the cache, use none

Template (info)

:::note default template

template
 \uf019

:::

Properties

NameTypeDescription
.Currentstringthe current version number
.Lateststringthe latest available version number