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

[cwd] Display Unix-style path in Git Bash prompt #379

Open mloskot opened 1 year ago

mloskot commented 1 year ago

Is your feature request related to a problem? Please describe.

On Windows, in Git Bash, powerline-go -modules cwd displays current location in format of Windows-style path,

This is perfectly fine in PowerShell, but it is a bit of visually confusing in Git Bash (i.e. in Bash):

image

Describe the solution you'd like

It would be helpful, if the cwd module could distinguish Git Bash from PowerShell and display path in Unix-style in prompt, i.e. /d and /d/nanodbc for the case from the screenshot.

Describe alternatives you've considered

n/a

Additional context