From d9c80e0d79489aeecf5cbb3c4ed692b17af7f0ea Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 20:38:37 +0200 Subject: [PATCH] fix(zsh): replace input sequences with terminfos --- .config/zsh/input.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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