]> git.phdru.name Git - dotfiles.git/blob - .inputrc
.profile, .shellrc: test $BASH_VERSION instead of $SHELL
[dotfiles.git] / .inputrc
1 # readline/history settings and bindings
2
3 $include /etc/inputrc
4
5 set meta-flag on
6 set convert-meta off
7 set input-meta on
8 set output-meta on
9
10 # Make Tab autocomplete regardless of filename case
11 #set completion-ignore-case on
12
13 set bell-style none
14 set expand-tilde off
15 set print-completions-horizontally off
16 #set show-all-if-ambiguous on
17
18 # Be more intelligent when autocompleting by also looking at the text after
19 # the cursor. For example, when the current line is "cd ~/src/mozil", and
20 # the cursor is on the "z", pressing Tab will not autocomplete it to "cd
21 # ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
22 # Readline used by Bash 4.)
23 set skip-completed-text on
24
25 # Show extra file information when completing, like `ls -F` does
26 set visible-stats on
27
28 # In all programs, all terminals, make sure this is bound.
29 "\C-x\C-r": re-read-init-file
30
31 Tab: complete
32 M-Tab: menu-complete
33
34 # Some terminals have ugly default behaviour for C-h.
35 #"\C-h": backward-delete-char
36 #"\e\C-h": backward-kill-word
37
38 # PgUp/PgDn - previous/next command in history
39 "\e[5~": previous-history
40 "\e[6~": next-history
41
42 # More intelligent Up/Down behavior: use the text that has already
43 # been typed as the prefix for searching through commands.
44 "\e[A": history-search-backward
45 "\e[B": history-search-forward
46
47 # Debug
48 "\C-xf": dump-functions
49 "\C-xv": dump-variables
50 "\C-xm": dump-macros
51
52 # Notice the various bindings which are conditionalized depending
53 # on which program is running, or what terminal is active.
54
55 # In xterm windows, make the arrow keys do the right thing.
56 $if term=xterm
57    $include $HOME/lib/X11/inputrc
58 $endif
59 $if term=rxvt
60    $include $HOME/lib/X11/inputrc
61 $endif
62 $if term=vt100
63    $include $HOME/lib/X11/inputrc
64 $endif
65 $if term=screen
66    $include $HOME/lib/X11/inputrc
67 $endif
68
69 # For bash, all terminals, add some bash specific hacks.
70 #$if Bash
71 #$endif