Saltar al contenido principal

Actualización

Traducción Beta No Oficial

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.

{
"upgrade": {
"notice": true,
"interval": "168h",
"auto": false,
"source": "cdn"
}
}
información

La actualización automática nunca instalará versiones mayores. Esto evita introducir cambios disruptivos sin la confirmación explícita del usuario.

advertencia

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.

NameTypeDefaultDescription
noticebooleanfalseenable displaying the upgrade notice on shell start, only checks based on interval
autobooleanfalseautomatically update Oh My Posh when an update is found, only checks based on interval
intervalstring24hthe 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
sourcestringcdnwhere 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

oh-my-posh enable upgrade