--- a/zshrc.d/10-default-bindings.zrc Sat Aug 22 12:02:41 2020 +0200
+++ b/zshrc.d/10-default-bindings.zrc Sun Apr 25 13:40:43 2021 +0200
@@ -16,8 +16,9 @@
bindkey -s '' '^[/'
bindkey -s '' '^[,'
-# Sur la console
-if [[ "$TERM" == "console" || "$TERM" == "vt100" ]]; then
+if [[ $TERM == "console" || $TERM == "vt100" || $TERM == linux* ||
+ $TERM == xterm* || $TERM == tmux* ]]
+then
bindkey '^[[1~' beginning-of-line # Home
bindkey '^[[4~' end-of-line # End
fi
@@ -26,16 +27,12 @@
if [[ -z ${TERM:#linux*} || -z ${TERM:#screen} ]]; then
bindkey '^[[H' beginning-of-line # Home
bindkey '^[[F' end-of-line # End
- bindkey '^[[1~' beginning-of-line # Home
- bindkey '^[[4~' end-of-line # End
fi
# Dans un xterm
if [[ -z ${TERM:#xterm*} ]]; then
bindkey '^[[H' beginning-of-line # Home
bindkey '^[[F' end-of-line # End
- bindkey '^[[1~' beginning-of-line # Home
- bindkey '^[[4~' end-of-line # End
# Sur un xterm, on differencie backspace et delete (?).
bindkey '^H' backward-delete-char # Backspace