fix(zsh): replace input sequences with terminfos
This commit is contained in:
parent
b8a48c2440
commit
d9c80e0d79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user