Workaround for tmux terminfo.

This commit is contained in:
Gea-Suan Lin
2023-12-15 03:19:00 +08:00
parent 34c3fe885c
commit cc147bc1c9

2
.zshrc
View File

@@ -88,6 +88,8 @@ bindkey "${terminfo[cud1]}" history-beginning-search-forward-end
bindkey "${terminfo[cuu1]}" history-beginning-search-backward-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
bindkey "\e[A" history-beginning-search-forward-end
bindkey "\e[B" history-beginning-search-backward-end
# #
my-backward-delete-word() { my-backward-delete-word() {
local WORDCHARS=${WORDCHARS/\//} local WORDCHARS=${WORDCHARS/\//}