Add configuration to disable checking for updates at startup, including checking for theme updates #6603
Replies: 4 comments 14 replies
-
|
@WangJincheng4869 that configurations seems correct provided you have an up-to-date version of oh-my-posh. It might also be worthwhile to run |
Beta Was this translation helpful? Give feedback.
-
|
@JanDeDobbeleer I executed
|
Beta Was this translation helpful? Give feedback.
-
|
Just now, there was another issue of slow loading, but I didn't see any valuable information from the logs. Here are the log files. The following is my configuration file, without configuring too much content |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem, can't disable update checking. Disabling oh-my-posh alone reduces my pwsh startup time from 6 seconds to approximately 500ms. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What would you like to see added?
Automatically checking for updates is a great feature, but due to network issues, the startup speed can be slow, usually exceeding 5 seconds. This problem almost always occurs after restarting the computer, so I can quickly access the terminal by turning off the update detection function during startup, just like opening it for the second time.
I tried using the following configuration, but still encountered slow loading issues.
{ "upgrade": { "notice": false, "interval": "87600h", "auto": false, "source": "cdn" }, "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "right", "segments": [ { "background": "#003543", "foreground": "#ffffff", "style": "plain", "template": " \ue641 {{ .CurrentDate | date .Format }} ", "type": "time" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { "always_enabled": true }, "style": "plain", "template": " \ueba2 {{ .FormattedMs }} ", "type": "executiontime" } ], "type": "rprompt" }, { "alignment": "left", "segments": [ { "background": "#61AFEF", "foreground": "#ffffff", "properties": { "display_host": false }, "style": "diamond", "template": "{{if .Root}} \uf0e7 {{end}}", "trailing_diamond": "\ue0b0", "type": "session" }, { "background": "#C678DD", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "folder_icon": "\uf115", "folder_separator_icon": " \ue0b1 ", "max_depth": 2, "style": "agnoster_short" }, "style": "powerline", "template": " {{ .Path }} ", "type": "path" }, { "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " {{ .HEAD }} ", "type": "git" } ], "type": "prompt" } ], "final_space": true, "version": 3 }Beta Was this translation helpful? Give feedback.
All reactions