jorgebucaran / hydro

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

`Broken Pipe` Error gets printed when holding enter #6

Closed vrishk closed 3 years ago

vrishk commented 3 years ago

Thank you very much for this prompt!

When I hold down enter, it gives the following error:

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

Setup:

OS: MacOS Big Sur
fish: version 3.1.2
Screen Shot 2021-01-18 at 8 46 27 AM
vrishk commented 3 years ago

I am running fish with the following fisher plugins:

jorgebucaran/fisher
fishgretel/fasd
PatrickF1/fzf.fish
jorgebucaran/hydro

My config.fish:

set -e fish_greeting

set hydro_color_pwd blue
set hydro_color_git yellow
set hydro_color_error red
set hydro_color_prompt 6DCC00
set hydro_color_duration $fish_color_normal

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval /Users/vishirishi/Software/miniconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

Would you need any other files?

jorgebucaran commented 3 years ago

Please comment out the Conda initialization code and try again.

vrishk commented 3 years ago

Yeah it works perfectly now. Is the problem with Conda's fish init being unable to cope with the speed?

jorgebucaran commented 3 years ago

Try running Conda's initialization only if you're interactive, by adding this to your config.fish:

status is-interactive &&
  eval /Users/vishirishi/Software/miniconda3/bin/conda "shell.fish" "hook" $argv | source
vrishk commented 3 years ago

Thank you so much! It works perfectly now.