Revert "Remove cud1/cuu1 usage."

This reverts commit f5d1be8345.
This commit is contained in:
Gea-Suan Lin
2023-12-15 02:39:47 +08:00
parent f5d1be8345
commit d99b5a30ea

2
.zshrc
View File

@@ -84,6 +84,8 @@ bindkey "\e[1;3D" backward-word
autoload -Uz history-search-end autoload -Uz history-search-end
zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end zle -N history-beginning-search-forward-end history-search-end
bindkey "${terminfo[cud1]}" history-beginning-search-forward-end
bindkey "${terminfo[cuu1]}" history-beginning-search-backward-end
bindkey "${terminfo[kcud1]}" history-beginning-search-forward-end bindkey "${terminfo[kcud1]}" history-beginning-search-forward-end
bindkey "${terminfo[kcuu1]}" history-beginning-search-backward-end bindkey "${terminfo[kcuu1]}" history-beginning-search-backward-end
# #