Skip to main content

Install Oh My Posh

# https://ohmyposh.dev/docs/installation/windows

# Open PowerShell with Run as Administrator.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

winget install JanDeDobbeleer.OhMyPosh --source winget --scope user --force

# Create Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
New-Item -Path $PROFILE -Type File -Force

notepad $PROFILE

# Insert this into the file
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/robbyrussell.omp.json" | Invoke-Expression