Closed ehafenmaier closed 2 years ago
@ehafenmaier there was a stupid bug in the logic which causes this. Unfortunately this can't be applied retroactively. The fix is to update all oh-my-posh executables to the latest version and restore the config backup. Terribly sorry about this.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
After upgrading oh-my-posh on [Windows 11/WSL2/Ubuntu 20.04] to version 7.49.0 the shared theme config between WSL2 and PowerShell get migrated to version 1 when using WSL2/Ubuntu. The migration to version 1 seems to strip out the "template" property from all the segments.
The same theme config file has been shared between WSL2 and PowerShell without issue up until this latest upgrade in WSL2/Ubuntu.
Windows 11 - WSL2
WSL2/Ubuntu: Version 20.04 Oh-My-Posh: Version 7.49.0
Windows 11 - PowerShell
PowerShell: Version 7.2.2 Oh-My-Posh: Version 7.52.0
Theme
dracula-erich.omp.json (After using WSL2/Ubuntu 20.04)
dracula-erich.omp.json.bak (Before using WSL2/Ubuntu 20.04)
What OS are you seeing the problem on?
Linux
Which shell are you using?
bash
Log output