]> git.phdru.name Git - dotfiles.git/blob - .inputrc
.inputrc: explain searching backward/forward
[dotfiles.git] / .inputrc
1 # readline/history settings and bindings
2
3 $include /etc/inputrc
4
5 set bell-style none
6 set completion-ignore-case off
7
8 set meta-flag on
9 set convert-meta off
10 set input-meta on
11 set output-meta on
12
13 # In all programs, all terminals, make sure this is bound.
14 "\C-x\C-r": re-read-init-file
15
16 Tab: complete
17 M-Tab: menu-complete
18
19 # Some terminals have ugly default behaviour for C-h.
20 #"\C-h": backward-delete-char
21 #"\e\C-h": backward-kill-word
22
23 # PgUp/PgDn - more intelligent Up/Down behavior: use the text that has already
24 # been typed as the prefix for searching through commands.
25 "\e[5~": history-search-backward
26 "\e[6~": history-search-forward
27
28 # Debug
29 "\C-xf": dump-functions
30 "\C-xv": dump-variables
31 "\C-xm": dump-macros
32
33 # Notice the various bindings which are conditionalized depending
34 # on which program is running, or what terminal is active.
35
36 # In xterm windows, make the arrow keys do the right thing.
37 $if term=xterm
38    $include $HOME/lib/X11/inputrc
39 $endif
40 $if term=rxvt
41    $include $HOME/lib/X11/inputrc
42 $endif
43 $if term=vt100
44    $include $HOME/lib/X11/inputrc
45 $endif
46 $if term=screen
47    $include $HOME/lib/X11/inputrc
48 $endif
49
50 # For bash, all terminals, add some bash specific hacks.
51 #$if Bash
52 #$endif