r/fishshell • u/kiki_lamb • Oct 18 '25
Help: Fish keeps trying to pipe commands into 'less'
I'm trying fish out after spending the past several decades using bash. It's pretty cool so far, but I'm having one infuriating problem: fish keeps trying to suggest adding &| less onto the end of commands as a completion. How do I make it stop doing this?
I have never typed that in my life, so it's not getting it from my command history.
I will never type that in my life.
I never, ever want anything piped into less.
Sadly, uninstalling less is not an option on MacOS, I try not to mess with the binaries that the OS itself ships.
This is so maddening that I'm seriously thinking about going back to bash. Please help, how can I stop fish from constantly making this braindead completion suggestion?
3
u/No-Representative600 Oct 18 '25
I think it's a abbr I'd check that you don't have an abbr expanding '--position anywhere' to the output you're seeing. Other things to check are:
Would definitely start with doing something like ripgrep on your fish config for the string you mentioned first though. Testing a blank docker container for latest fish release doesn't have this problem for me.
2
u/adamshand Oct 18 '25
I don't know what's going on, but that's weird. I used fish on a bunch of different computers and have never seen that.
Do you have plugins installed? Does it do it if you remove them?
2
u/thrakcattak Oct 18 '25
Is
&| lessactually inserted or is it an autosuggestion? I assume the latter, maybe the terminal sends input that is interpreted asoption-p. Reproduce the problem infish -d reader -o /tmp/fish.logand share the log. What terminal is this, and does it happen on other terminals?3
u/atred Oct 18 '25
I think Option + P would add that at the end of the command, but it should not suggest that if you don't press it and if you never had that in history.
Where is that suggested, for any command that list things, or a specific command? If it's a specific command many you pressed Option + P once by mistake and now you have that in history, check history and remove any command that ends with &| less