]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - shell/inputrc
zsh/rc: prepend "--" in X alias
[config/dotfiles.git] / shell / inputrc
1 # Configuration file for readline.
2
3 # Copyright (C) 2011-2015  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Only one <Tab> is necessary to get a list of all possible options.
20 set show-all-if-ambiguous on
21 set show-all-if-unmodified on
22
23 # Always complete all items no matter how many there are.
24 set completion-query-items -1
25 # And make sure we use a pager for completions (this is also the default).
26 set page-completions on
27
28 # Add character to files denoting the type when completing file names.
29 set visible-stats on
30
31 # Activate Vi editing mode.
32 set editing-mode vi
33
34
35 # KEY BINDINGS
36
37 # Insert mode.
38
39 # Use jk to exit insert mode (jj is too slow to type).
40 "jk": vi-movement-mode
41
42 # <Up>/<Down> with the additional effect that only lines starting with the
43 # current input are matched. Very useful to recall old commands quickly - just
44 # type the first few characters.
45 "\C-p": history-search-backward
46 "\C-n": history-search-forward
47
48 # Allow <C-L> in Vi normal mode to clear the screen.
49 "\C-L": clear-screen
50
51 # Command mode.
52 set keymap vi
53
54 # No bindings yet.