author | Mikael Berthe <mikael@lilotux.net> |
Fri, 10 Jul 2020 09:42:03 +0200 | |
changeset 45 | c8b92fa96f48 |
parent 30 | e26330cd408f |
child 47 | f25fda256b1d |
permissions | -rw-r--r-- |
13 | 1 |
|
2 |
# Emacs mode bindings |
|
3 |
||
4 |
bindkey -e |
|
5 |
||
6 |
#bindkey '^Q' quoted-insert |
|
45 | 7 |
bindkey '^[[2~' overwrite-mode # Ins |
8 |
bindkey '^[[3~' delete-char # Suppr |
|
9 |
bindkey '^[[5~' history-beginning-search-backward # PgUp |
|
10 |
bindkey '^[[6~' history-beginning-search-forward # PgDn |
|
13 | 11 |
bindkey '^[^I' reverse-menu-complete # ESC-Tab |
30
e26330cd408f
Use copy-prev-shell-word instead of copy-prev-word
Mikael Berthe <mikael@lilotux.net>
parents:
13
diff
changeset
|
12 |
bindkey '^Xc' copy-prev-shell-word |
13 | 13 |
bindkey '^Xf' _correct_filename |
14 |
bindkey '^Xm' _most_recent_file |
|
15 |
||
45 | 16 |
bindkey -s '' '^[/' |
17 |
bindkey -s '' '^[,' |
|
13 | 18 |
|
19 |
# Sur la console |
|
20 |
if [[ "$TERM" == "console" || "$TERM" == "vt100" ]]; then |
|
21 |
bindkey '^[[1~' beginning-of-line # Home |
|
22 |
bindkey '^[[4~' end-of-line # End |
|
23 |
fi |
|
24 |
||
25 |
# Dans un xterm term=linux |
|
26 |
if [[ -z ${TERM:#linux*} || -z ${TERM:#screen} ]]; then |
|
27 |
bindkey '^[[H' beginning-of-line # Home |
|
28 |
bindkey '^[[F' end-of-line # End |
|
45 | 29 |
bindkey '^[[1~' beginning-of-line # Home |
30 |
bindkey '^[[4~' end-of-line # End |
|
13 | 31 |
fi |
32 |
||
33 |
# Dans un xterm |
|
34 |
if [[ -z ${TERM:#xterm*} ]]; then |
|
35 |
bindkey '^[[H' beginning-of-line # Home |
|
36 |
bindkey '^[[F' end-of-line # End |
|
45 | 37 |
bindkey '^[[1~' beginning-of-line # Home |
38 |
bindkey '^[[4~' end-of-line # End |
|
39 |
||
40 |
# Sur un xterm, on differencie backspace et delete (?). |
|
41 |
bindkey '^H' backward-delete-char # Backspace |
|
42 |
bindkey '^?' backward-delete-char # Backspace |
|
13 | 43 |
fi |
44 |
||
45 |
# Dans un rxvt |
|
46 |
if [[ -z ${TERM:#rxvt*} ]]; then |
|
47 |
bindkey '^[[7~' beginning-of-line # Home |
|
48 |
bindkey '^[[8~' end-of-line # End |
|
49 |
fi |