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

Paths are not escaped correctly in Git BASH for Windows

CWempe opened this issue · comments

Describe the bug
When using Git for Bash for Windows some paths are not escaped correctly which results in garbage being displayed.

image

The same works in PowerShell:

image

Path for copy: ~\AppData\Local\VirtualStore\ProgramData\chocolatey\lib\kitty\tools\Sessions

Environment (please complete the following information):

  • OS: Windows 10
  • Architecture:
  • Shell: Git Windows v2.30.1
  • powerline-go Version: v1.21

Output of echo $PS1 may help to understand this behavior better

Bash:

image

PowerShell: (useless I guess)

image