Direct naar hoofdinhoud

Upgrade

Onofficiële Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden →

Configuratie

Oh My Posh kan de beschikbaarheid van updates tonen of zichzelf automatisch bijwerken wanneer je dit inschakelt door het volgende aan je configuratie toe te voegen.

{
"upgrade": {
"notice": true,
"interval": "168h",
"auto": false,
"source": "cdn"
}
}
informatie

Automatisch bijwerken zal nooit naar een nieuwe hoofdversie upgraden. Dit voorkomt het introduceren van breaking changes zonder expliciete bevestiging van de gebruiker.

waarschuwing

Upgradefuncties zijn nooit actief wanneer je async laden hebt ingeschakeld in je configuratie en je shell dit ondersteunt.

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)

Upgraden

Handmatig

Je kunt altijd de upgradestappen volgen die in de installatiesectie staan, maar je kunt ook het upgrade-commando gebruiken om Oh My Posh naar de nieuwste versie bij te werken.

oh-my-posh upgrade

Automatisch

oh-my-posh enable upgrade