Skip to content

Home directory not shown as ~ (tilde) om WSL ubuntu #418

@orbelico

Description

@orbelico

Describe the bug
I have a machine with Windows 11 and ubuntu 24.04 in WSL. When I use powerline-go inside of there, my home directory path is abbreviated only as long as I do not leave it. Any idea why this is happening?

Image

To Reproduce
Steps to reproduce the behavior:

  1. Start WSL
  2. cd anywhere (in fact, even just a plain cd without argument, which stays in the home folder will change the appearance of the prompt)

Expected behavior
Home directory path always is abbreviated as ~

Environment (please complete the following information):

  • OS: ubuntu 24.04 in WSL (Win 11 Build 22631)
  • Architecture: x64
  • Shell: bash

Additional context
Home directory is correctly reflected in $HOME and in /etc/passwd. As you can see from the screenshot, pwd's output also does not change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions