/Git-Terminal

Beautify Your Windows Terminal With posh-git and oh-my-posh

Creative Commons Zero v1.0 UniversalCC0-1.0

Beautify Your Windows Terminal With posh-git and oh-my-posh

If you use Git then you want to have some visual information when you make changes in your terminal.

image

Install Windows Terminal

winget install Microsoft.WindowsTerminal

Install PowerShell 7 64 bit

winget install Microsoft.Powershell

Install oh-my-posh

winget install JanDeDobbeleer.OhMyPosh -s winget

Install posh-git

Start the PowerShell as an Administrator

Install-Module posh-git -Scope CurrentUser

Save the Profile

notepad $PROFILE
Import-Module posh-git
oh-my-posh init pwsh | Invoke-Expression

Install the Fonts

oh-my-posh font install

Select CascadiaCode

Change Windows Terminal Settings

image

image

Links:

https://github.com/dahlbyk/posh-git

https://ohmyposh.dev/

https://anshbadaya.medium.com/customizing-windows-terminal-with-posh-git-and-oh-my-posh-752c0e0eb8cb

https://ohmyposh.dev/docs/installation/fonts

https://www.hanselman.com/blog/how-to-make-a-pretty-prompt-in-windows-terminal-with-powerline-nerd-fonts-cascadia-code-wsl-and-ohmyposh