You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Syntax error should highlight last non-whitespace char in prompt str - not just ">" #127
When I'm running as admin my prompt string is "{hist-num}# ". It would be nice if PSReadline would change the "#" to red when my command line has a syntax error. Perhaps this is something that is configurable via an option - ErrorSyntaxPromptChar?
I don't think we need an option. The current implementation uses char.IsSymbol and that covers at least 2 commonly used characters in prompts, but not all of them. I'll probably just change it to !char.IsWhiteSpace(c) && !char.IsLetterOrDigit(c).
When I'm running as admin my prompt string is "{hist-num}# ". It would be nice if PSReadline would change the "#" to red when my command line has a syntax error. Perhaps this is something that is configurable via an option - ErrorSyntaxPromptChar?