Assuming that you have Git for Windows installed, otherwise install it first via official website, chocolatey, scoop, etc.
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
Assuming that you have a PowerShell profile (check by Test-path $profile
), otherwise create one by New-item βtype file βforce $profile
.