I am using Windows Terminal(Preview) with shells like 1.PowerShell, 2.WSL
in my Windows 10 machine. I installed the latest version of oh-my-posh
and posh-git
to customize the terminal. My current theme is Agnoster
which gives a colorful custom prompt. But I want to get rid of the "username@host" from my prompt.
Eg:
Current => username@host D:\folder-name>
Needed => D:\folder-name>
I tried few things with $GitPromptSettings
variable and also in GitPrompt.ps1
file which is inside the posh-git folder but with no use.
Also, since i have oh-my-posh and posh-git, does both have prompt customization properties or it is only from posh-git?
Any help is appreciated.
GitPrompt
variable which is returned by posh.git – Candless