- install winget
- install Nerd Fonts: nerd-fonts (to get icons ,dont worries you can still use your favorite font if they are available in nerd-fonts)
- then extract it and install it
- install oh my posh
winget install JanDeDobbeleer.OhMyPosh -s winget
winget upgrade JanDeDobbeleer.OhMyPosh -s winget
For default theme enable:
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
Get-PoshThemes
if you restart powershell everything will go away :) no worries i got you.
oh-my-posh get shell
if you are in powershell:
notepad $PROFILE
When the above command gives an error, make sure to create the profile first.
New-Item -Path $PROFILE -Type File -Force
In this scenario, it can also be that PowerShell blocks running local scripts. To solve that, set PowerShell to only require remote scripts to be signed using Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
, or sign the profile.
Then add the following line in the file.(you can select any other theme )
oh-my-posh init pwsh --config 'C:\Users\${username}$\AppData\Local\Programs\oh-my-posh\themes\{themename}.omp.json' | Invoke-Expression>