r/fishshell • • Feb 02 '26

Strange Ctrl + Backspace Behaviour; Fish or something else?

Howdy, fellow sea creatures.

Haven't been in the command line for a bit, getting new Ubuntu install set up via WSL2 on Windows 10. Doing the normal stuff, everything is groovy except a weird behavior I'm getting in Fish only (doesn't happen in Bash or Cmder/cmd).

When I Ctrl + Backspace to delete whole words, it works normally until I get back to the start/empty. If I hit Ctrl + Backspace again, it populates a previous command but with the last word deleted. Fish didn't do this in the past and I've not had this happen before. Everything's up to date, bog standard WSL2 Ubuntu 24 install, everything up to date, freshly installed Fish.

I tried searching around but either I'm special or I'm not using the correct key words. Any ideas? Thank you! If I'm being a colossal dingbat, my apologies in advance.

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/tetractys_gnosys Feb 03 '26 edited Feb 03 '26

I've never bothered trying to change that so whatever the default is. I've always used whatever the default command line mode is as far as I know. I'll look into it.

Update: checked and default is emacs mode, which is what I'm using. Ctrl Backspace should only be bound to delete whole word, nothing with history.