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