]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .inputrc
.vimrc: Set airline theme in Theme section
[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 # See 'man bash' >> READLINE for documentation on all the readline options and commands.
6 # You can use 'bind' (bash built-in command) to view current readline config:
7 # bind -p ... Display readline function names and bindings in such a way that they can be re-read.
8 # bind -P ... List current readline function names and bindings.
9 # bind -V ... List current readline variable names and values.
10 # (See 'man bash' >> SHELL BUILTIN COMMANDS for additional details...)
11 # You can re-read the inputrc file with C-x C-r (re-read-init-file).
12
13 set bell-style visible
14 set expand-tilde off
15 set input-meta off
16 set convert-meta on
17 set output-meta off
18 set horizontal-scroll-mode off
19 set history-preserve-point on
20 set mark-directories on
21 set mark-symlinked-directories on
22 set match-hidden-files off
23
24 # completion settings
25 set page-completions off
26 set completion-query-items 2000
27 set completion-ignore-case off
28 set show-all-if-ambiguous on
29 set show-all-if-unmodified on
30 set completion-prefix-display-length 10
31 set print-completions-horizontally off
32
33 set editing-mode emacs
34
35 # reload file
36 "\C-x\C-r": re-read-init-file
37
38 C-n: history-search-forward
39 C-p: history-search-backward
40
41 $if mode=emacs
42
43 "\e[A": history-search-backward
44 "\e[B": history-search-forward
45
46 # for linux console and RH/Debian xterm
47 "\e[1~": beginning-of-line
48 "\e[4~": end-of-line
49 "\e[5~": beginning-of-history
50 "\e[6~": end-of-history
51 "\e[3~": delete-char
52 "\e[2~": quoted-insert
53 "\e[5C": forward-word
54 "\e[5D": backward-word
55 "\e\e[C": forward-word
56 "\e\e[D": backward-word
57 "\e[1;5C": forward-word
58 "\e[1;5D": backward-word
59
60 # for rxvt
61 $if term=rxvt
62 "\e[8~": end-of-line
63 "\eOc": forward-word
64 "\eOd": backward-word
65 $endif
66
67 # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
68 "\eOH": beginning-of-line
69 "\eOF": end-of-line
70
71 # for freebsd console
72 "\e[H": beginning-of-line
73 "\e[F": end-of-line
74
75 $endif