| 1 | ### bash and friends, readline configuration |
| 2 | |
| 3 | ## Eight-bit sensibleness |
| 4 | set input-meta on |
| 5 | set output-meta on |
| 6 | set convert-meta off |
| 7 | |
| 8 | ## Other twiddles. |
| 9 | set bell-style none |
| 10 | set bind-tty-special-chars off |
| 11 | set blink-matching-paren on |
| 12 | set enable-bracketed-paste on |
| 13 | set colored-completion-prefix off |
| 14 | set colored-stats on |
| 15 | set enable-bracketed-paste on |
| 16 | |
| 17 | ## Missing bindings |
| 18 | "\e\e[C": forward-word |
| 19 | "\e\e[D": backward-word |
| 20 | "\e ": "\e\\ " |
| 21 | "\e\C-w": kill-region |
| 22 | |
| 23 | ## Because the default bindings are just too weird. |
| 24 | "\en": history-search-forward |
| 25 | "\ep": history-search-backward |
| 26 | "\C-u": kill-whole-line |
| 27 | |
| 28 | ## Better cursor motion. |
| 29 | $if Bash |
| 30 | "\e\C-b": shell-backward-word |
| 31 | "\e\C-d": shell-kill-word |
| 32 | "\e\C-f": shell-forward-word |
| 33 | "\C-w": shell-backward-kill-word |
| 34 | $endif |