diff --git a/.config/zsh/input.zsh b/.config/zsh/input.zsh index 1c7034b..fa2e225 100644 --- a/.config/zsh/input.zsh +++ b/.config/zsh/input.zsh @@ -26,11 +26,11 @@ fi (( ${+terminfo[kdch1]} )) && bindkey -- "${terminfo[kdch1]}" delete-char # Ctrl-Delete -bindkey -- '^[[3;5~' kill-word +(( "${+terminfo[kDC5]}" )) && bindkey -- "${terminfo[kDC5]}" kill-word # Ctrl-RightArrow/LeftArrow -bindkey -- '^[[1;5C' forward-word -bindkey -- '^[[1;5D' backward-word +(( "${+terminfo[kRIT5]}" )) && bindkey -- "${terminfo[kRIT5]}" forward-word +(( "${+terminfo[kLFT5]}" )) && bindkey -- "${terminfo[kLFT5]}" backward-word # Space - don't do history expansion bindkey ' ' magic-space