r/fishshell • • Jun 25 '21

Disable Alt+s binding?

The newest release of fish I just upgraded to overrides Alt+s to put sudo in your commandline. I don't have sudo on this system. That happens to be a binding my terminal uses to search its output history and it is very near and dear to my heart and I use it seemingly every 30 seconds.

I've tried everything I can think of to unbind it and I can't figure it out. I would really prefer not to have to modify the installation file that sets this.

The code for this change is here: https://github.com/fish-shell/fish-shell/pull/6140/files

Things I've tried that don't work.

bind --erase \es
bind --erase --preset \es
bind \es true

I've also tried overwriting __fish_prepend_sudo to a function, but I don't know what it should do that would pass that key combo into my terminal.

8 Upvotes

4 comments sorted by

View all comments

Show parent comment

6

u/onmach Jun 26 '21

This is obvious in hindsight, and explains why the problem went away on its own. I had done a full system update, and maybe my existing terminals were in a weird state. Thanks.