diff -r 157f894ef9f7 -r c8b92fa96f48 zshrc.d/10-default-bindings.zrc --- a/zshrc.d/10-default-bindings.zrc Mon Mar 02 13:16:10 2020 +0100 +++ b/zshrc.d/10-default-bindings.zrc Fri Jul 10 09:42:03 2020 +0200 @@ -4,17 +4,17 @@ bindkey -e #bindkey '^Q' quoted-insert -bindkey '[2~' overwrite-mode # Ins -bindkey '[3~' delete-char # Suppr -bindkey '[5~' history-beginning-search-backward # PgUp -bindkey '[6~' history-beginning-search-forward # PgDn +bindkey '^[[2~' overwrite-mode # Ins +bindkey '^[[3~' delete-char # Suppr +bindkey '^[[5~' history-beginning-search-backward # PgUp +bindkey '^[[6~' history-beginning-search-forward # PgDn bindkey '^[^I' reverse-menu-complete # ESC-Tab bindkey '^Xc' copy-prev-shell-word bindkey '^Xf' _correct_filename bindkey '^Xm' _most_recent_file -bindkey -s '' '/' -bindkey -s '' ',' +bindkey -s '' '^[/' +bindkey -s '' '^[,' # Sur la console if [[ "$TERM" == "console" || "$TERM" == "vt100" ]]; then @@ -26,16 +26,20 @@ 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 + 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 + 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 + bindkey '^?' backward-delete-char # Backspace fi # Dans un rxvt @@ -43,10 +47,3 @@ bindkey '^[[7~' beginning-of-line # Home bindkey '^[[8~' end-of-line # End fi - -# Sur un xterm, on differencie backspace et delete (?). -if [[ -z ${TERM:#xterm*} ]] -then - bindkey '^H' backward-delete-char # Backspace - bindkey '^?' backward-delete-char # Backspace -fi