Useful Commands

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Set-ExecutionPolicy -Scope CurrentUser Bypass

oh-my-posh

Install from local

  1. Download the nupkg file from https://www.powershellgallery.com/packages?q=oh-my-posh

  2. Run below command to register repository and install

    Register-PSRepository -Name 'oh-my-posh' -SourceLocation 'your-nupkg-folder'
    Install-Module oh-my-posh -Scope CurrentUser -Repository oh-my-posh
    Import-Module oh-my-posh
    

Commands

Get-PoshThemes
Get-PoshThemes -list