jorgebucaran / hydro

Ultra-pure, lag-free prompt with async Git status—just for Fish
MIT License
697 stars 53 forks source link

Allow prompt symbol to be shown and customized on error #14

Closed mserajnik closed 3 years ago

mserajnik commented 3 years ago

This adds three new variables that allow to show and customize the prompt symbol when an error occurs:

Variable Type Description Default
hydro_show_prompt_symbol_on_error boolean Show the prompt symbol after the error segment if an error occurs. false
hydro_symbol_prompt_error string Prompt symbol when an error occurs (if shown).
hydro_color_prompt_error color Color of the prompt symbol on error (if shown). $fish_color_error

This covers the use case of #11 but makes it configurable (instead of always showing the prompt).

mserajnik commented 3 years ago

Closed due to lack of feedback and me personally not using hydro anymore; of course, feel free to use the code from the PR, if desired.

jorgebucaran commented 3 years ago

Sorry, I should've responded more quickly. I know it's a bit late, but I'm not really interested in customizing this. Maybe that's why it fell under my radar. Cheers!