Commit | Line | Data |
---|---|---|
917b7a9a MW |
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 | |
1b873f82 | 7 | |
2d04b37b | 8 | ## Other twiddles. |
c626c512 | 9 | set bell-style none |
2d04b37b MW |
10 | set bind-tty-special-chars off |
11 | set blink-matching-paren on | |
c626c512 | 12 | set colored-completion-prefix off |
2ab49ba7 | 13 | $if Bash |
c626c512 | 14 | set colored-stats on |
2ab49ba7 | 15 | $endif |
39c3239b MW |
16 | $if term=dumb |
17 | $else | |
c626c512 | 18 | set enable-bracketed-paste on |
39c3239b | 19 | $endif |
2d04b37b | 20 | |
1b873f82 MW |
21 | ## Missing bindings |
22 | "\e\e[C": forward-word | |
23 | "\e\e[D": backward-word | |
c626c512 | 24 | "\e ": "\e\\ " |
ad4f178b | 25 | "\e\C-w": kill-region |
2d04b37b MW |
26 | |
27 | ## Because the default bindings are just too weird. | |
28 | "\en": history-search-forward | |
29 | "\ep": history-search-backward | |
859a1658 | 30 | "\C-u": kill-whole-line |
2d04b37b MW |
31 | |
32 | ## Better cursor motion. | |
c31903d7 | 33 | $if Bash |
2d04b37b MW |
34 | "\e\C-b": shell-backward-word |
35 | "\e\C-d": shell-kill-word | |
36 | "\e\C-f": shell-forward-word | |
37 | "\C-w": shell-backward-kill-word | |
c31903d7 | 38 | $endif |