Bind backspace to nothing in zsh

286 Views Asked by At

I'm trying to bind my backspace key to nothing in Konsole (you might ask why, well, I'm trying to get rid of the habbit of pressing Backspace and instead use Ctrl+8, which is closer to my hands).

I don't get how to bind the backspace key to nothing, i.e.:

bindkey '^H' <nothing>

Thank you.

1

There are 1 best solutions below

1
On BEST ANSWER

What about binding it to the empty string with

bindkey -s "^H" ""

Works here with zsh 5.0.2.