justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows username is cropped

al1-ce opened this issue · 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