# HG changeset patch # User Mikael Berthe # Date 1619953119 -7200 # Node ID 604330c024f40853d840009f59ca8000c948a669 # Parent f25fda256b1d4720c5555f900f51a6e37844912a Fix key bindings with screen TERM diff -r f25fda256b1d -r 604330c024f4 zshrc.d/10-default-bindings.zrc --- a/zshrc.d/10-default-bindings.zrc Sun Apr 25 13:40:43 2021 +0200 +++ b/zshrc.d/10-default-bindings.zrc Sun May 02 12:58:39 2021 +0200 @@ -17,14 +17,14 @@ bindkey -s '' '^[,' if [[ $TERM == "console" || $TERM == "vt100" || $TERM == linux* || - $TERM == xterm* || $TERM == tmux* ]] + $TERM == xterm* || $TERM == screen* || $TERM == tmux* ]] then bindkey '^[[1~' beginning-of-line # Home bindkey '^[[4~' end-of-line # End fi # Dans un xterm term=linux -if [[ -z ${TERM:#linux*} || -z ${TERM:#screen} ]]; then +if [[ $TERM == linux* ]]; then bindkey '^[[H' beginning-of-line # Home bindkey '^[[F' end-of-line # End fi