starship / starship

β˜„πŸŒŒοΈ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
https://starship.rs
ISC License
44.96k stars 1.96k forks source link

character module always shows success_symbol in PowerShell #4299

Open Namorzyny opened 2 years ago

Namorzyny commented 2 years ago

Bug Report

Current Behavior

The character module always shows success_symbol after first 2 commands in PowerShell. But in cmd.exe, with the same starship configuration file, it works well.

Expected Behavior

Show a correct symbol for the last command.

Additional context/Screenshots

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2022-08-22 081052 γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2022-08-22 081119

Environment

Starship Configuration

[character]
success_symbol = "[->](bold green)"
error_symbol = "[->](bold red)"
Namorzyny commented 2 years ago

Seems this issue is caused by a module PoshColor, but it works well with starship before. any solutions?

t-mart commented 2 years ago

Also seeing this behavior for Powershell. The status module is affected in the same way.