]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .inputrc
bin/ipaddr: Helper utility for showing interface IP addr(s)
[dotfiles.git] / .inputrc
1 # This file controls the behaviour of line input editing for
2 # programs that use the GNU Readline library. Existing
3 # programs include FTP, Bash, and GDB.
4 #
5 # You can re-read the inputrc file with C-x C-r.
6 # Lines beginning with '#' are comments.
7
8 set bell-style visible
9 set expand-tilde off
10 set input-meta off
11 set convert-meta on
12 set output-meta off
13 set horizontal-scroll-mode off
14 set history-preserve-point on
15 set mark-directories on
16 set mark-symlinked-directories on
17 set match-hidden-files off
18
19 # completion settings
20 set page-completions off
21 set completion-query-items 2000
22 set completion-ignore-case off
23 set show-all-if-ambiguous on
24 set show-all-if-unmodified on
25 set completion-prefix-display-length 10
26 set print-completions-horizontally off
27
28 set editing-mode emacs
29
30 # reload file
31 "\C-x\C-r": re-read-init-file
32
33 C-n: history-search-forward
34 C-p: history-search-backward
35
36 $if mode=emacs
37
38 "\e[A": history-search-backward
39 "\e[B": history-search-forward
40
41 # for linux console and RH/Debian xterm
42 "\e[1~": beginning-of-line
43 "\e[4~": end-of-line
44 "\e[5~": beginning-of-history
45 "\e[6~": end-of-history
46 "\e[3~": delete-char
47 "\e[2~": quoted-insert
48 "\e[5C": forward-word
49 "\e[5D": backward-word
50 "\e\e[C": forward-word
51 "\e\e[D": backward-word
52 "\e[1;5C": forward-word
53 "\e[1;5D": backward-word
54
55 # for rxvt
56 $if term=rxvt
57 "\e[8~": end-of-line
58 "\eOc": forward-word
59 "\eOd": backward-word
60 $endif
61
62 # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
63 "\eOH": beginning-of-line
64 "\eOF": end-of-line
65
66 # for freebsd console
67 "\e[H": beginning-of-line
68 "\e[F": end-of-line
69
70 $endif