| File CONFIGURATION.md changed (mode: 100644) (index 1c2be50..c4f5368) |
| ... |
... |
bind -S |
| 41 |
41 |
## BASH EMACS KEYMAP (DEFAULT) |
## BASH EMACS KEYMAP (DEFAULT) |
| 42 |
42 |
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: |
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: |
| 43 |
43 |
```bash |
```bash |
| 44 |
|
bind '"\C-r": "\C-ahh \C-j"' |
|
|
44 |
|
bind '"\C-r": "\C-ahh -- \C-j"' |
| 45 |
45 |
``` |
``` |
| 46 |
46 |
or <kbd>Ctrl-Alt-r</kbd>: |
or <kbd>Ctrl-Alt-r</kbd>: |
| 47 |
47 |
```bash |
```bash |
| 48 |
|
bind '"\e\C-r":"\C-ahh \C-j"' |
|
|
48 |
|
bind '"\e\C-r":"\C-ahh -- \C-j"' |
| 49 |
49 |
``` |
``` |
| 50 |
50 |
or <kbd>Ctrl-F12</kbd>: |
or <kbd>Ctrl-F12</kbd>: |
| 51 |
51 |
```bash |
```bash |
| 52 |
|
bind '"\e[24;5~":"\C-ahh \C-j"' |
|
|
52 |
|
bind '"\e[24;5~":"\C-ahh -- \C-j"' |
| 53 |
53 |
``` |
``` |
| 54 |
54 |
Bind `hh` to <kbd>Ctrl-r</kbd> only if it is interactive shell: |
Bind `hh` to <kbd>Ctrl-r</kbd> only if it is interactive shell: |
| 55 |
55 |
```bash |
```bash |
| 56 |
|
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi |
|
|
56 |
|
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh -- \C-j"'; fi |
| 57 |
57 |
``` |
``` |
| 58 |
58 |
|
|
| 59 |
59 |
## BASH VI KEYMAP |
## BASH VI KEYMAP |
| 60 |
60 |
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: |
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: |
| 61 |
61 |
```bash |
```bash |
| 62 |
|
bind '"\C-r": "\C-ahh \C-j"' |
|
|
62 |
|
bind '"\C-r": "\C-ahh -- \C-j"' |
| 63 |
63 |
``` |
``` |
| 64 |
64 |
|
|
| 65 |
65 |
## ZSH EMACS KEYMAP (DEFAULT) |
## ZSH EMACS KEYMAP (DEFAULT) |
| 66 |
66 |
Bind `hh` to a Zsh key e.g. to <kbd>Ctrl-r</kbd>: |
Bind `hh` to a Zsh key e.g. to <kbd>Ctrl-r</kbd>: |
| 67 |
67 |
```bash |
```bash |
| 68 |
|
bindkey -s "\C-r" "\eqhh\n" |
|
|
68 |
|
bindkey -s "\C-r" "\eqhh --\n" |
| 69 |
69 |
``` |
``` |
| 70 |
70 |
|
|
| 71 |
71 |
|
|