简体   繁体   中英

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, ie:

bindkey '^H' <nothing>

Thank you.

What about binding it to the empty string with

bindkey -s "^H" ""

Works here with zsh 5.0.2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM