From d99b5a30eaa427f7d40699dc01d0a40abe2ee89a Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Fri, 15 Dec 2023 02:39:47 +0800 Subject: [PATCH] Revert "Remove cud1/cuu1 usage." This reverts commit f5d1be834541e2dc61f3ea49b79bd314034caa83. --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index ca79129..542d043 100644 --- a/.zshrc +++ b/.zshrc @@ -84,6 +84,8 @@ bindkey "\e[1;3D" backward-word autoload -Uz history-search-end zle -N history-beginning-search-backward-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[kcuu1]}" history-beginning-search-backward-end #