atuin icon indicating copy to clipboard operation
atuin copied to clipboard

Log errors when offline

Open dabeeeenster opened this issue 2 years ago • 4 comments

I'm getting errors when the sync server is not reachable that are polluting my terminal - is this just me? error sending request for url and some additional items?

Thanks for the project - use it multiple times a day!

dabeeeenster avatar Aug 31 '22 21:08 dabeeeenster

Happy to hear you like Atuin!

Hmm those errors shouldn't be making their way to your terminal.

Just a couple of questions

What shell do you use?

How have you setup the atuin integration?

ellie avatar Aug 31 '22 22:08 ellie

Hi,

Using fish shell on MacOS. Getting this sort of thing:

image

Integrating like this in fish.config:

    # Try https://github.com/ellie/atuin
    # dont bind to up arrow
    set ATUIN_NOBIND true
    atuin init fish | source
    # But bind to CTRL+R
    bind \cr _atuin_search

dabeeeenster avatar Sep 01 '22 07:09 dabeeeenster

Hmm, I'm not to familiar with fish, but it does look like we are missing the /dev/null redirect that we use for bash/zsh. Maybe that's the issue

conradludgate avatar Sep 01 '22 08:09 conradludgate

I can confirm. We are currently using &; disown to spawn the end command in the background, but my testing shows it still outputs the stdout/err. We just need to add &>/dev/null and it should be good

conradludgate avatar Sep 01 '22 08:09 conradludgate

Resolved by #518

ellie avatar Oct 08 '22 04:10 ellie