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 -SkipPublisherCheckAssuming that you have a PowerShell profile (check by Test-path $profile), otherwise create one by New-item –type file –force $profile.
Run notepad $profile and add the next:
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme ParadoxNote that you can set the theme you want.
First install Neofetch for Windows via Scoop:
scoop install neofetchThen edit your PowerShell profile again (notepad $profile) and add neofetch in the end.
Neofetch also works on CMD. In case you want to adapt the prompt output between PowerShell and CMD so that they share the same high on the same terminal window size, you can always add breaklines by echo " ".
Sources: