Skip to content

starship init zsh not working in msys2 zsh #7573

Description

@goulf-3m

Bug Report

Current Behavior

the starship init zsh code cannot work properly.
The path handling (spaces and forward/backward slashes, maybe) are failing.

Expected Behavior

I expect it to work like startship init zsh in Linux.
The msys2 environment provides equivalent utilities.
If Zsh (and z10k) can already work, it should be possible for starship too.

Additional context/Screenshots

errors like:

zsh: no such file or directory: /c/Program
zsh: no such file or directory: /c/Program

Possible Solution

Fix path handling, correct escaping sequence.
Maybe some code to detect the context of msys2/zsh.

Environment

  • Starship version: 1.26.0
  • Shell type: zsh 5.9 oh-my-zsh
  • Terminal emulator: wezterm
  • Operating system: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working as expected.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions