Powerline in PowerShell code example

Example: Powerline in PowerShell

# install Cascadia Code PL or Cascadia Mono PL from it's github release
 # install Git for Windows, If you haven't yet

 # Type in powershell
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

 # Open your PowerShell profile with notepad $PROFILE
 # In your PowerShell profile, add the following to the end of the file:
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme paradox

 # open your profile settings in your settings.json file by selecting Settings (Ctrl+,) from your Windows Terminal dropdown menu
 # Once your settings.json file opens, find the Windows PowerShell profile and add: "fontFace": "Cascadia Code PL" to designate Cascadia Code PL as the font.