mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-16 07:54:05 -08:00
47 lines
1 KiB
Plaintext
47 lines
1 KiB
Plaintext
|
---
|
||
|
id: upgrade
|
||
|
title: Upgrade notice
|
||
|
sidebar_label: Upgrade
|
||
|
---
|
||
|
|
||
|
## 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",
|
||
|
}}
|
||
|
/>
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Name | Type | Description |
|
||
|
| --------------- | ----- | --------------------------------------------------------------------------------------------- |
|
||
|
| `cache_timeout` | `int` | in minutes - How long to wait before checking for a new version. Default is 10080 (one week). |
|
||
|
|
||
|
## Template ([info][templates])
|
||
|
|
||
|
:::note default template
|
||
|
|
||
|
```template
|
||
|
\uf019
|
||
|
```
|
||
|
|
||
|
:::
|
||
|
|
||
|
### Properties
|
||
|
|
||
|
| Name | Type | Description |
|
||
|
| ---------- | -------- | ---------------------- |
|
||
|
| `.Version` | `string` | the new version number |
|
||
|
|
||
|
[templates]: /docs/configuration/templates
|