Here are my raw notes to get Oh-My-Posh working with Terminal and Powershell.
Set-ExecutionPolicy RemoteSigned
winget install Microsoft.WindowsTerminal
winget install oh-my-posh
Install-Module posh-git -Scope CurrentUser
Install-Module -Name Terminal-Icons -Repository PSGallery
- Install Nerd Fonts
Test-Path $Profile
New-Item -Path $Profile -Type File -Force
Notepad $Profile
- Add
Import-Module -Name Terminal-Icons oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\paradox.omp.json" | Invoke-Expression
- Add
- Terminal->Settings->Defaults->Appearance set to
CaskaydiaCove Nerd Font
- Open new powershell window.
If when doing a dir
or gci
and seeing boxes for the Terminal-Icons you may need to unstall Terminal or update the nerd fonts. —-
See How to Set up the Windows terminal with Powershell and Oh My Posh - DEV Community for a more graphical rep.
Note if a gci
or dir