1
0
Fork 0

Add termux workaround to xterm workaround

This commit is contained in:
tastytea 2022-04-28 08:37:46 +02:00
parent 2bf6d037d4
commit 116e79518f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ if [[ "${TERM}" =~ "^rxvt" ]]; then
bindkey '^[Ob' history-substring-search-down
fi
if [[ "${TERM}" =~ "^xterm" ]]; then
# termux claims it is xterm <https://github.com/termux/termux-app/issues/2744>
if [[ ${TERM} == xterm* && ! -v TERMUX_APP_PID ]]; then
bindkey '^H' backward-delete-char
bindkey '^?' backward-delete-word
fi