justjanne/powerline-go

Windows username is cropped

al1-ce opened this issue · 0 comments

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):

  • OS: Windows
  • Architecture: amd64
  • Shell: git bash