Add workaround for terminals claiming to be xterm*
This commit is contained in:
parent
06fb99154d
commit
8c017c5979
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user