Actualización
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Configuración
Oh My Posh puede mostrar la disponibilidad de actualizaciones o actualizarse automáticamente al habilitar esta función añadiendo lo siguiente en tu configuración.
- json
- yaml
- toml
{
"upgrade": {
"notice": true,
"interval": "168h",
"auto": false,
"source": "cdn"
}
}
upgrade:
notice: true
interval: 168h
auto: false
source: cdn
[upgrade]
notice = true
interval = "168h"
auto = false
source = "cdn"
La actualización automática nunca instalará versiones mayores. Esto evita introducir cambios disruptivos sin la confirmación explícita del usuario.
Las funciones de actualización nunca están activas cuando tienes habilitada la carga async en tu configuración
y el shell que usas lo admite.
| Name | Type | Default | Description |
|---|---|---|---|
notice | boolean | false | enable displaying the upgrade notice on shell start, only checks based on interval |
auto | boolean | false | automatically update Oh My Posh when an update is found, only checks based on interval |
interval | string | 24h | the duration for which not to check for an update. The duration is a string in the format 1h2m3s and is parsed using the time.ParseDuration function from the Go standard library |
source | string | cdn | where to fetch the information from. Accepted values are cdn (https://cdn.ohmyposh.dev/releases/latest/version.txt) and github (https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/version.txt) |
Actualización
Manual
Aunque siempre puedes seguir los pasos de actualización en la sección de instalación,
también puedes usar el comando upgrade para actualizar Oh My Posh a la última versión.
oh-my-posh upgrade
Automatizada
- CLI
- Configuration
oh-my-posh enable upgrade
- json
- yaml
- toml
{
"upgrade": {
"interval": "168h",
"auto": true,
"source": "cdn"
}
}
upgrade:
interval: 168h
auto: true
source: cdn
[upgrade]
interval = "168h"
auto = true
source = "cdn"