zshkonsole

Bind backspace to nothing in zsh


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.


Solution

  • What about binding it to the empty string with

    bindkey -s "^H" ""
    

    Works here with zsh 5.0.2.