Skip to content

Instantly share code, notes, and snippets.

@dalyIsaac
Last active September 26, 2023 08:23
Show Gist options
  • Save dalyIsaac/097f1b91b6b3e578831c45f939c1e89b to your computer and use it in GitHub Desktop.
Save dalyIsaac/097f1b91b6b3e578831c45f939c1e89b to your computer and use it in GitHub Desktop.
Setup for Powerline on PowerShell on Windows

Powerline for PowerShell

Basically a consolidation of https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx

Set the execution policy:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Install Posh-Git and Oh-My-Git (assuming that Git for Windows is installed).

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

To load powerline, run notepad $PROFILE, and add the lines to the end:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment