Upgrade
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.
- 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"
Automatisch bijwerken zal nooit naar een nieuwe hoofdversie upgraden. Dit voorkomt het introduceren van breaking changes zonder expliciete bevestiging van de gebruiker.
Upgradefuncties zijn nooit actief wanneer je async laden hebt ingeschakeld in je configuratie
en je shell dit ondersteunt.
| 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) |
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
- 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"