1
0
Fork 0

Add workaround for terminals claiming to be xterm*

This commit is contained in:
tastytea 2022-05-01 22:00:41 +02:00
parent 06fb99154d
commit 8c017c5979
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ if [[ "${TERM}" == rxvt* ]]; then
bindkey '^[Ob' history-substring-search-down
fi
# termux claims it is xterm <https://github.com/termux/termux-app/issues/2744>
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