You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, when a new version of Oh My Posh is available, users are shown the following message when the terminal is launched:
A new release of Oh My Posh is available: vxx.xx.x → vxx.xx.x
To upgrade, run: 'oh-my-posh upgrade'
To enable automated upgrades, set 'auto_upgrade' to 'true' in your configuration.
I believe there are two scenarios on how a user can enable automatic updates:
The user has no custom configuration
Export your current "off-the-shelf" theme via following command: oh-my-posh config export --output ~/.mytheme.omp.json
Edit the newly created custom configuration and add {"auto_upgrade": true}
Edit the $PROFILE file so it uses the new configuration file oh-my-posh init pwsh --config "C/Users/USERNAME/.mytheme.omp.json" | Invoke-Expression
Reload the current profile via .$PROFILE
The user has custom configuration
Edit the custom configuration and add {"auto_upgrade": true}
Edit the $PROFILE file so it uses the new configuration file oh-my-posh init pwsh --config "C/Users/USERNAME/.mytheme.omp.json" | Invoke-Expression
Reload the current profile via .$PROFILE
Possible enhancement
Would it make more sense to introduce a command such as oh-my-posh autoupgrade or equivalent that offers a uniform user experience when enabling auto upgrades?
Some possible issues with this:
What if the user didn't have a custom configuration yet, should it be created automatically based upon the current theme?
Could the oh-my-posh upgrade configuration be handled separately from the theming configuration, e.g. in a different file?
Would love to see if this could be viable a UX improvement, however I might have overlooked a few things here due to my limited experience with the custom configuration file.
The text was updated successfully, but these errors were encountered:
Code of Conduct
What would you like to see changed?
Current situation
At the moment, when a new version of Oh My Posh is available, users are shown the following message when the terminal is launched:
I believe there are two scenarios on how a user can enable automatic updates:
The user has no custom configuration
oh-my-posh config export --output ~/.mytheme.omp.json
{"auto_upgrade": true}
oh-my-posh init pwsh --config "C/Users/USERNAME/.mytheme.omp.json" | Invoke-Expression
.$PROFILE
The user has custom configuration
{"auto_upgrade": true}
oh-my-posh init pwsh --config "C/Users/USERNAME/.mytheme.omp.json" | Invoke-Expression
.$PROFILE
Possible enhancement
Would it make more sense to introduce a command such as
oh-my-posh autoupgrade
or equivalent that offers a uniform user experience when enabling auto upgrades?Some possible issues with this:
Would love to see if this could be viable a UX improvement, however I might have overlooked a few things here due to my limited experience with the custom configuration file.
The text was updated successfully, but these errors were encountered: