]> git.phdru.name Git - dotfiles.git/blob - .inputrc
.profile: copy some code and comments from Debian /etc/skel
[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 # Be more intelligent when autocompleting by also looking at the text after
14 # the cursor. For example, when the current line is "cd ~/src/mozil", and
15 # the cursor is on the "z", pressing Tab will not autocomplete it to "cd
16 # ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
17 # Readline used by Bash 4.)
18 set skip-completed-text on
19
20 # Show extra file information when completing, like `ls -F` does
21 set visible-stats on
22
23 # In all programs, all terminals, make sure this is bound.
24 "\C-x\C-r": re-read-init-file
25
26 Tab: complete
27 M-Tab: menu-complete
28
29 # Some terminals have ugly default behaviour for C-h.
30 #"\C-h": backward-delete-char
31 #"\e\C-h": backward-kill-word
32
33 # PgUp/PgDn - more intelligent Up/Down behavior: use the text that has already
34 # been typed as the prefix for searching through commands.
35 "\e[5~": history-search-backward
36 "\e[6~": history-search-forward
37
38 # Debug
39 "\C-xf": dump-functions
40 "\C-xv": dump-variables
41 "\C-xm": dump-macros
42
43 # Notice the various bindings which are conditionalized depending
44 # on which program is running, or what terminal is active.
45
46 # In xterm windows, make the arrow keys do the right thing.
47 $if term=xterm
48    $include $HOME/lib/X11/inputrc
49 $endif
50 $if term=rxvt
51    $include $HOME/lib/X11/inputrc
52 $endif
53 $if term=vt100
54    $include $HOME/lib/X11/inputrc
55 $endif
56 $if term=screen
57    $include $HOME/lib/X11/inputrc
58 $endif
59
60 # For bash, all terminals, add some bash specific hacks.
61 #$if Bash
62 #$endif