From 8c017c5979030cd274e3e9fc27c1bc7cc03fd417 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 1 May 2022 22:00:41 +0200 Subject: [PATCH] Add workaround for terminals claiming to be xterm* --- .config/zsh/keys.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/keys.zsh b/.config/zsh/keys.zsh index c7c45bf..c76a7ae 100644 --- a/.config/zsh/keys.zsh +++ b/.config/zsh/keys.zsh @@ -63,8 +63,8 @@ if [[ "${TERM}" == rxvt* ]]; then bindkey '^[Ob' history-substring-search-down fi -# termux claims it is xterm -if [[ ${TERM} == xterm* && ! -v TERMUX_APP_PID && ! -v ALACRITTY_SOCKET ]]; then +# A lot of terminals claim they are xterm, so we check for version variable too +if [[ ${TERM} == xterm* && -v XTERM_VERSION ]]; then bindkey '^H' backward-delete-char bindkey '^?' backward-delete-word fi