]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/inputrc
Move to shell/ in preparation for merge into new dotfiles repository
[config/dotfiles.git] / shell / inputrc
diff --git a/shell/inputrc b/shell/inputrc
new file mode 100644 (file)
index 0000000..aa74013
--- /dev/null
@@ -0,0 +1,54 @@
+# Configuration file for readline.
+
+# Copyright (C) 2011-2015  Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file.  If not, see <http://www.gnu.org/licenses/>.
+
+
+# Only one <Tab> is necessary to get a list of all possible options.
+set show-all-if-ambiguous on
+set show-all-if-unmodified on
+
+# Always complete all items no matter how many there are.
+set completion-query-items -1
+# And make sure we use a pager for completions (this is also the default).
+set page-completions on
+
+# Add character to files denoting the type when completing file names.
+set visible-stats on
+
+# Activate Vi editing mode.
+set editing-mode vi
+
+
+# KEY BINDINGS
+
+# Insert mode.
+
+# Use jk to exit insert mode (jj is too slow to type).
+"jk": vi-movement-mode
+
+# <Up>/<Down> with the additional effect that only lines starting with the
+# current input are matched. Very useful to recall old commands quickly - just
+# type the first few characters.
+"\C-p": history-search-backward
+"\C-n": history-search-forward
+
+# Allow <C-L> in Vi normal mode to clear the screen.
+"\C-L": clear-screen
+
+# Command mode.
+set keymap vi
+
+# No bindings yet.