| File README.md changed (mode: 100644) (index c9c473e..c4cad1e) |
| ... |
... |
INSTALLATION |
| 19 |
19 |
------------ |
------------ |
| 20 |
20 |
* add hh to $PATH |
* add hh to $PATH |
| 21 |
21 |
* you may also bind hh to a BASH key (e.g. F12) by adding bind to .bashrc: |
* you may also bind hh to a BASH key (e.g. F12) by adding bind to .bashrc: |
|
22 |
|
|
| 22 |
23 |
bind '"\e[24~":"hh"' |
bind '"\e[24~":"hh"' |
|
24 |
|
|
| 23 |
25 |
To determine the character sequence emitted by a pressed key in terminal, |
To determine the character sequence emitted by a pressed key in terminal, |
| 24 |
26 |
type CTRL-v and then press the key. For example, F12 gives "^[[24~" (no quotes). |
type CTRL-v and then press the key. For example, F12 gives "^[[24~" (no quotes). |
| 25 |
27 |
Replace the "^[" with \e. To clear the line first, add “\C-k \C-u” in front of |
Replace the "^[" with \e. To clear the line first, add “\C-k \C-u” in front of |
| 26 |
28 |
the actual command to clear the line first. |
the actual command to clear the line first. |
|
29 |
|
|
| 27 |
30 |
bind '"\e[24~":"\C-kX\C-uhh\n"' |
bind '"\e[24~":"\C-kX\C-uhh\n"' |
|
31 |
|
|
| 28 |
32 |
Binding using Ctrl-F12: |
Binding using Ctrl-F12: |
|
33 |
|
|
| 29 |
34 |
bind '"\e[24;5~":"\C-kX\C-uhh\n"' |
bind '"\e[24;5~":"\C-kX\C-uhh\n"' |
|
35 |
|
|
| 30 |
36 |
Check: |
Check: |
|
37 |
|
|
| 31 |
38 |
bind -S |
bind -S |
| 32 |
39 |
|
|
| 33 |
40 |
|
|