justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

Windows username is cropped #365

Closed al1-ce closed 10 months ago

al1-ce commented 2 years ago

Describe the bug On Windows username is cropped (PCNamesername instead of Username) most of the time because of way names work. If you'd type into powershell or cmd whoami it'd say "PCName\Username", which makes it ugly and crops username because of forming escape character

Expected behavior Powerline as Username>PCName>~>$ Actual behavior Powerline as PCNamesername>PCName>~>$

Environment (please complete the following information):