website/docs/migrating-module.md
Traditionally, the module was the only way to install oh-my-posh using Install-Module oh-my-posh.
Today, with the shift to the executable version over a year ago, it only acts as a wrapper around the
executable, offering no additional functionality. Throughout the year, the following changes have been made:
Import-ModuleThere's a problem with the Module due to the following:
Remove-Item $env:POSH_PATH -Force -Recurse
:::warning If you added custom elements to this location, they will be deleted with the command above. Make sure to move these before running the command. :::
See your platform's installation guide. The preferred ways are winget and Homebrew.
Uninstall-Module oh-my-posh -AllVersions
Delete the import of the PowerShell module in your $PROFILE
Import-Module oh-my-posh
If you're still using Set-PoshPrompt, replace that statement with the following:
oh-my-posh init pwsh --config ~/.custom.omp.json | Invoke-Expression
And replace ~/.custom.omp.json with the location of your theme.
oh-my-posh init pwsh --config "jandedobbeleer" | Invoke-Expression
Replace jandedobbeleer with the theme you use.