跳转到主内容

升级提示

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

当 Oh My Posh 有可用更新时显示。

示例配置

{
"type": "upgrade",
"style": "plain",
"foreground": "#111111",
"background": "#FFD664",
"options": {
"cache_duration": "168h"
}
}

选项

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

模板 (信息)

默认模板
 \uf019

属性

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